Interface InspectorComponentProps

Props for the InspectorComponent

interface InspectorComponentProps {
    autoCommit?: boolean;
    className?: string;
    filter?: ((obj: Base) => boolean);
    inspectors: Record<string, any>;
    multipleSelections?: boolean;
    typeResolver: ((obj: Base) => string);
}

Hierarchy

  • DOMAttributes<HTMLDivElement>
    • InspectorComponentProps

Properties

autoCommit?: boolean

Whether or not to auto commit changes on blur or enter keypress. Defaults to true.

className?: string

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

filter?: ((obj: Base) => boolean)

Optional filter function that you can supply if you want to ignore certain objects in your dataset.

inspectors: Record<string, any>

Map of inspector templates, keyed by type. The type key is the return value from your typeResolver function. The values should be Svelte component references.

multipleSelections?: boolean

Whether or not to allow multiple objects to be selected and edited at once. Defaults to false.

typeResolver: ((obj: Base) => string)

A function that is used to derive the ID of the inspector to use based on the object to be inspected.

Version :