API reference: @salmonui/dropdowns/listbox
ListboxDropEventinterface
import type { ListboxDropEvent } from '@salmonui/dropdowns/listbox';interface ListboxDropEvent<T> {
readonly values: readonly ListboxKey[];
readonly items: readonly T[];
readonly fromList: string;
readonly dragGroup: string;
readonly toIndex: number;
readonly source: ListboxEventSource;
}
onItemDrop argument, fired on the receiving list.
| Name | Signature | Description |
|---|---|---|
values | readonly values: readonly ListboxKey[]; | |
items | readonly items: readonly T[]; | The dragged items, from the source list's |
fromList | readonly fromList: string; |
|
dragGroup | readonly dragGroup: string; | |
toIndex | readonly toIndex: number; | Insertion index in this list's |
source | readonly source: ListboxEventSource; |