Interface PersistentSheetCellEditorProps

This wraps the SheetCellEditor with coords similar to useEditor does for the grid but can be used inline

interface PersistentSheetCellEditorProps {
    activeCoords?: CellCoords;
    bodyStyle?: GridSurfaceStyle;
    containerBounds?: Bounds;
    defaultTextStyle?: TextStyle;
    disabled?: boolean;
    editState?: EditState<ICellModel, string>;
    linesVisible?: number;
    onCommandsChange?: ((commands) => void);
    onEditStateAndCoordsChange?: ((editStateAndCoords) => void);
    preferFormula?: boolean;
    sheet?: SheetElement;
    sheetModel?: ISheetModel;
    useRichStyling?: boolean;
    zoom?: number;
    onCancelEdit?(): void;
    onChangeEdit?(editState): void;
    onDoneEdit?(): void;
    onNavigate?(direction, select?, contentful?): void;
    onNavigateSelection?(direction): void;
    onStartEdit?(editState): void;
    onSubmitEdit?(editState): void;
    setNaturalSize?(size): void;
}

Hierarchy (view full)

Properties

activeCoords?: CellCoords

used for commands will be removed

bodyStyle?: GridSurfaceStyle
containerBounds?: Bounds

Position of editor, x, y, width and height

defaultTextStyle?: TextStyle

Styling for the textfield

disabled?: boolean
editState?: EditState<ICellModel, string>

editState of the cell

linesVisible?: number

Returns the number of lines to display. The minimum is 1.

Default Value

'The number of lines required to display the text'
onCommandsChange?: ((commands) => void)

Key down listeners

Type declaration

    • (commands): void
    • Parameters

      Returns void

onEditStateAndCoordsChange?: ((editStateAndCoords) => void)

Type declaration

preferFormula?: boolean
sheet?: SheetElement
sheetModel?: ISheetModel

used for commands will be removed

useRichStyling?: boolean

Override defaultText styling with cellStyling?

zoom?: number

Methods