Lilact
    Preparing search index...

    Function DragHandle

    • DragHandle - helper component to wire up drag interactions.

      This component does not implement dragging/movement itself. Instead, it listens for drag gesture events and delegates them to the provided callbacks.

      Parameters

      • props: {
            children?: Component;
            className?: string;
            data?: any;
            onDelta?: (x: number, y: number, data: any) => void;
            onEnd?: (event: "up" | "cancel", data: any) => void;
            onStart?: (data: any) => void;
            style?: object;
        }
        • Optionalchildren?: Component

          Content rendered inside the handle.

        • OptionalclassName?: string

          Optional CSS class applied to the wrapper element. A .dragging class will be also applied when dragging.

        • Optionaldata?: any

          Arbitrary user data passed through callbacks.

        • OptionalonDelta?: (x: number, y: number, data: any) => void

          Called when the drag position changes.

        • OptionalonEnd?: (event: "up" | "cancel", data: any) => void

          Called when the drag ends or is cancelled.

        • OptionalonStart?: (data: any) => void

          Called when the drag begins.

        • Optionalstyle?: object

          Optional style applied to the wrapper element.

      Returns HTMLComponent