ChemPal Documentation - v1.12.0
    Preparing search index...

    Variable DRAWER_WIDGETConst

    DRAWER_WIDGET: {
        AUTOCOMPLETE_STRINGS: "autocompleteStrings";
        AUTOCOMPLETE_OBJECTS: "autocompleteObjects";
        CHIPS: "chips";
        NUMBER_RANGE: "numberRange";
    } = ...

    Widget kinds a column's meta.drawer config can request. The value discriminates the ColumnDrawerConfig union, so each one implies the runtime type of that branch's options (e.g. DRAWER_WIDGET.AUTOCOMPLETE_OBJECTS needs { code, label }[]).

    Type declaration

    • ReadonlyAUTOCOMPLETE_STRINGS: "autocompleteStrings"

      Multi-select autocomplete over a list of plain strings.

    • ReadonlyAUTOCOMPLETE_OBJECTS: "autocompleteObjects"

      Multi-select autocomplete over { code, label } options, e.g. countries.

    • ReadonlyCHIPS: "chips"

      A row of toggleable chips, one per option.

    • ReadonlyNUMBER_RANGE: "numberRange"

      Paired min/max numeric inputs.

    export const DRAWER_WIDGET = {
    /** Multi-select autocomplete over a list of plain strings. */
    AUTOCOMPLETE_STRINGS: 'autocompleteStrings',
    /** Multi-select autocomplete over `{ code, label }` options, e.g. countries. */
    AUTOCOMPLETE_OBJECTS: 'autocompleteObjects',
    /** A row of toggleable chips, one per option. */
    CHIPS: 'chips',
    /** Paired min/max numeric inputs. */
    NUMBER_RANGE: 'numberRange',
    } as const;