RayCraftDocs
v1.0.3 raycraft.dev
On this page

Sortable

Free

List that can be reordered by dragging, or with the move buttons for keyboard and touch use. Changes are announced to screen readers.

Example

Sortable control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
ItemsIEnumerable<TItem>The items in their current order.
ItemTemplateRenderFragment<TItem>Custom content for each item. The item is available as context.
ItemTextFunc<TItem, string>Converts an item to its display text (defaults to ToString()).
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
ShowMoveButtonsboolShows the up and down buttons (default true).
StylestringInline style added to the root element.

Events

EventTypeDescription
ItemsChangedEventCallback<IReadOnlyList<TItem>>Raised with the new order after a move.

Package

Sortable is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.