Data
TwPickList
TwPickList is a Blazor dual list-box component for moving items between SourceItems and TargetItems, with move-all buttons, AllowReorder and keyboard support.
Last updated
Basic Usage
Bind
SourceItems and TargetItems to move items between the two lists. Click an item (or press Enter/Space) to select it, then use the chevron buttons to transfer the selection.Available Fruits
- Apple
- Banana
- Cherry
- Mango
- Peach
Selected Fruits
- Strawberry
- Blueberry
Complex Objects
Use
TextField to display a specific property when binding to a list of complex objects, matching TwSelect's PropertyName.Employees
- Alice Johnson
- Bob Smith
- Carol Lee
Developers
- David Kim
- Priya Patel
Without Reordering or Move-All
Set
AllowReorder="false" to hide the up/down buttons, or ShowMoveAllButtons="false" to hide the double-chevron transfer-all buttons.Colors
- Red
- Blue
- Green
- Yellow
Chosen
- No items
Razor
<TwPickList TItem="string"
@bind-SourceItems="@availableColors"
@bind-TargetItems="@selectedColors"
AllowReorder="false"
ShowMoveAllButtons="false"
SourceLabel="Colors"
TargetLabel="Chosen"
AriaLabel="Color picker" />Disabled
Set
Disabled to prevent selection, transferring, and reordering.Available
- Locked A
- Locked B
Selected
- Locked C
Razor
<TwPickList TItem="string"
SourceItems="@disabledSource"
TargetItems="@disabledTarget"
Disabled="true"
SourceLabel="Available"
TargetLabel="Selected"
AriaLabel="Disabled picker" />Theme Configuration
Styling is controlled by
TwBlazorTheme.Components (a TwPickListTheme), configured via the
AddTwBlazor() options callback described on the Get Started page.
Every property is a set of Tailwind classes, so changes are picked up by your own Tailwind build.
| Property | Type | Controls |
|---|---|---|
Container |
string | |
Column |
string | |
ColumnHeader |
string | |
Label |
string | |
ReorderButtons |
string | |
TransferButtonColumn |
string | |
ListBox |
string | |
ListBoxDisabled |
string | |
Item |
string | |
ItemSelected |
string | |
EmptyState |
string |
Full reference: TwPickListTheme on the API docs.