Interface PaletteComponentProps

Props for the PaletteComponent

interface PaletteComponentProps {
    className?: string;
    dataGenerator?: DataGeneratorFunction<BrowserElement>;
    selector?: string;
}

Hierarchy

  • DOMAttributes<HTMLDivElement>
    • PaletteComponentProps

Properties

className?: string

Optional class name to set on the component's root element.

dataGenerator?: DataGeneratorFunction<BrowserElement>

Function to invoke to get a payload for an element that is being dragged. Defaults to a function that extracts a payload from the element via any data-jtk-*** attributes that are present.

selector?: string

CSS selector identifying draggable elements. Defaults to '[data-jtk-type]'

Version :