SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Interface CellPickerOptions

    What a cell picker needs. Deliberately only an anchor, an item source and where a choice goes: the picker does not care who opened it, so a dropdown button, a Sheets-mode in-cell triangle and an Alt+Down command all open the identical component.

    interface CellPickerOptions {
        anchor: GridAnchor | null;
        cell: CellCoords | null;
        editable?: IEditable<any, string, any> | null;
        getCurrentText?: (cell: CellCoords) => string | null;
        label?: string;
        minWidth?: number;
        onChoose?: (item: PickerItem, cell: CellCoords) => void;
        resolveItems: (cell: CellCoords) => Promise<readonly PickerItem[]>;
        search?: boolean;
        sheet: ISheet;
        visibleRows?: number;
    }
    Index
    anchor: GridAnchor | null

    What the menu drops under — the cell / merge range, not a button. Excel anchors a list to the cell, and it is what every opener can supply. null until there is a cell.

    cell: CellCoords | null

    The cell the picker is for. null offers nothing until CellPicker.open is given one.

    editable?: IEditable<any, string, any> | null

    The editable a default choice is entered through — the same path as typing the item's text, so the value coerces and formats as a typed one does. Not needed when onChoose is given.

    getCurrentText?: (cell: CellCoords) => string | null

    The text of the row highlighted when the menu opens, when that is not the cell's text (a totals cell shows its result, but its row is the function).

    the cell's text
    
    label?: string

    The float's label, for the stack's bookkeeping.

    'cell-picker'

    minWidth?: number

    The anchored cell / merge width (px): the menu's width floor (see PickerPanelProps.minWidth).

    onChoose?: (item: PickerItem, cell: CellCoords) => void

    What a choice does.

    the item's text entered into the cell through the editable (commitListPick).

    resolveItems: (cell: CellCoords) => Promise<readonly PickerItem[]>

    The rows to offer at cell, asked when the menu opens.

    search?: boolean

    A search field above the list.

    false
    
    sheet: ISheet

    The sheet the cell is on: its Normal font, its current text, and the open flag.

    visibleRows?: number

    Rows shown before the list scrolls. See PickerPanelProps.visibleRows.