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

    Variable DRAWER_BINDINGConst

    DRAWER_BINDING: {
        SEARCH_FILTERS: "searchFilters";
        SELECTED_SUPPLIERS: "selectedSuppliers";
        USER_SETTINGS_RANGE: "userSettingsRange";
    } = ...

    Where a drawer section's value reads and writes in app state. Discriminates the ColumnDrawerBinding union, so ColumnDrawerSection can dispatch on it without columns knowing how the context is structured.

    Type declaration

    • ReadonlySEARCH_FILTERS: "searchFilters"

      A keyed slice of searchFilters (availability, country, shippingType).

    • ReadonlySELECTED_SUPPLIERS: "selectedSuppliers"

      The selected-suppliers list on the app context.

    • ReadonlyUSER_SETTINGS_RANGE: "userSettingsRange"

      A min/max pair of userSettings keys, e.g. priceMin/priceMax.

    export const DRAWER_BINDING = {
    /** A keyed slice of `searchFilters` (availability, country, shippingType). */
    SEARCH_FILTERS: 'searchFilters',
    /** The selected-suppliers list on the app context. */
    SELECTED_SUPPLIERS: 'selectedSuppliers',
    /** A min/max pair of `userSettings` keys, e.g. `priceMin`/`priceMax`. */
    USER_SETTINGS_RANGE: 'userSettingsRange',
    } as const;