ETASCOM CRM V3 - Documentation API
    Preparing search index...

    Interface SortableRootProps<T>

    interface SortableRootProps<T> {
        value: T[];
        onValueChange: (value: T[]) => void;
        getItemValue: (item: T) => string;
        children: ReactNode;
        className?: string;
        onMove?: (
            event: { event: DragEndEvent; activeIndex: number; overIndex: number },
        ) => void;
        strategy?: "horizontal" | "vertical" | "grid";
        onDragStart?: (event: DragStartEvent) => void;
        onDragEnd?: (event: DragEndEvent) => void;
    }

    Type Parameters

    • T
    Index

    Properties

    value: T[]
    onValueChange: (value: T[]) => void
    getItemValue: (item: T) => string
    children: ReactNode
    className?: string
    onMove?: (
        event: { event: DragEndEvent; activeIndex: number; overIndex: number },
    ) => void
    strategy?: "horizontal" | "vertical" | "grid"
    onDragStart?: (event: DragStartEvent) => void
    onDragEnd?: (event: DragEndEvent) => void