SheetXL - v1.0.2
    Preparing search index...

    Interface CellContentEntry

    What a type of cell control, or of rich data value, contributes to the UI: how its cells draw, what a press and a key do to them, and the task pane body for them. Every field is optional; a type registered with none draws as text.

    interface CellContentEntry {
        icon?:
            | string
            | ReactElement<unknown, string | JSXElementConstructor<any>>;
        insertable?: boolean;
        onKey?: (
            key: string,
            target: CellKeyTarget,
            ctx: CellControlContext,
        ) => boolean;
        onPress?: (
            cell: ICell,
            ctx: CellControlContext,
            event: CellPressEvent,
        ) => void;
        pane?: ComponentType<CellControlPaneProps>;
        renderer?: CellContentRenderer;
    }
    Index
    icon?: string | ReactElement<unknown, string | JSXElementConstructor<any>>

    The icon where a UI lists the types that can be inserted: a DynamicIcon key or an element. The name comes from the sdk kind's label.

    insertable?: boolean

    Whether a UI lists the type among those that can be inserted. Off for a type whose default value shows nothing, such as an image, which needs a source.

    true
    
    onKey?: (key: string, target: CellKeyTarget, ctx: CellControlContext) => boolean

    A printable key, Space included, typed on the grid while the selection touches cells of this type. Never Enter, Tab, an arrow, Escape or a function key, and never a key with a modifier. Return true when consumed: the key then never starts an edit. Return false to let the key start the normal edit of the anchor cell. Offered once per type with the whole selection; a checkbox toggles every checkbox cell of it on Space.

    onPress?: (cell: ICell, ctx: CellControlContext, event: CellPressEvent) => void

    A press on the content: a primary press on an element carrying CellContentRendererProps.interactiveProps. A checkbox writes the other value. The event says what was pressed: a renderer with several hit zones in one cell (the stars of a rating) marks them with attributes of its own and reads event.target.

    pane?: ComponentType<CellControlPaneProps>

    The body the cell control pane shows while a cell of this type is the selection's anchor.

    Draws the cell in place of its text. Without it the cell draws as text.