@page "/shared" Shared lists ยท Bortable

Shared lists

Both lists use the same Group name, so you can drag items from one into the other. Drop onto an item or into the empty space of a list. The "B" items keep their tint wherever they go: the class comes from ItemClassSelector, which styles the item rather than the list.

List A
@item
List B
@item

A: @string.Join(", ", _left)

B: @string.Join(", ", _right)

@code { private IList _left = new List { "A1", "A2", "A3", "A4", "A5" }; private IList _right = new List { "B1", "B2", "B3", "B4", "B5" }; // Style follows the item, not the list: "B" items stay tinted after moving. private string? Tint(string item) => item.StartsWith('B') ? "tinted" : null; }