Table of Contents

Method SortableContext

Namespace
Velvet
Assembly
Velvet.Docs.dll

SortableContext(IReadOnlyList<string>, DndSortingStrategy?, string?, VNode?[]?, string?)

public static ComponentNode SortableContext(IReadOnlyList<string> items, DndSortingStrategy? strategy = null, string? id = null, VNode?[]? children = null, string? key = null)

Parameters

items IReadOnlyList<string>

The items' ids, in their current order.

strategy DndSortingStrategy

How items move aside while a drag sorts them; null means Rect.

id string

The context's id, as ContainerId reports it; null generates one.

children VNode[]

The content holding the sortable items.

key string

Key used to disambiguate siblings at the same position.

Returns

ComponentNode

The created ComponentNode.