Body, Mind & Soul — API Reference
    Preparing search index...

    Function attachComboboxPicker

    • Generic combobox controller used by the action attribute pickers.

      Expected markup inside the picker wrapper: <input class="resource-picker-input" ... />

        ...

      The wrapper element's data-selected-key is set to the chosen value. Callers (e.g. _onAddCost) read this attribute instead of relying on a <select>.

      Parameters

      • picker: HTMLElement

        The .resource-cost-picker wrapper.

      • opts: {
            createLabel?: string;
            entries: () => { key: string; label: string }[];
            onCreate?: (filter: string) => Promise<{ key: any; label: any } | null>;
        } = {}
        • OptionalcreateLabel?: string

          When set, appends a "+ Create…" footer entry.

        • entries: () => { key: string; label: string }[]

          Live option source.

        • OptionalonCreate?: (filter: string) => Promise<{ key: any; label: any } | null>

          Invoked when Create is clicked.

      Returns void