View as Markdown

API reference: @salmonui/buttons/tag-group

TagDropEventinterface

import type { TagDropEvent } from '@salmonui/buttons/tag-group';
interface TagDropEvent {
    readonly values: readonly string[];
    readonly fromGroup: string;
    readonly toIndex: number;
    readonly source: TagEventSource;
}

onTagDrop event, fired on the receiving group of a cross-group drop.

TagDropEvent members (4)
NameSignatureDescription
valuesreadonly values: readonly string[];
fromGroupreadonly fromGroup: string;

id of the source group (its id prop, or a generated id).

toIndexreadonly toIndex: number;
sourcereadonly source: TagEventSource;