View as Markdown

API reference: @salmonui/navigation/tree-view

TreeViewBeforeMoveEventinterface

import type { TreeViewBeforeMoveEvent } from '@salmonui/navigation/tree-view';
interface TreeViewBeforeMoveEvent<T> extends TreeViewCancelableEvent {
    readonly ids: readonly TreeViewKey[];
    readonly items: readonly T[];
    readonly targetId: TreeViewKey;
    readonly position: TreeViewDropPosition;
    readonly sourceTreeId: string | undefined;
}
TreeViewBeforeMoveEvent members (8, 3 inherited)
NameSignatureDescription
idsreadonly ids: readonly TreeViewKey[];
itemsreadonly items: readonly T[];
targetIdreadonly targetId: TreeViewKey;
positionreadonly position: TreeViewDropPosition;
sourceTreeIdreadonly sourceTreeId: string | undefined;

The id of the tree the items come from when it is another tree of the same dragGroup.

preventDefaultinheritedpreventDefault: () => void;
defaultPreventedinheriteddefaultPrevented: boolean;
sourceinheritedsource: TreeViewEventSource;