Interface SheetCellEditorProps

interface SheetCellEditorProps {
    activeCoords?: CellCoords;
    bodyStyle?: GridSurfaceStyle;
    containerBounds?: Bounds;
    defaultTextStyle?: TextStyle;
    disabled?: boolean;
    editState?: EditState<ICellModel, string>;
    linesVisible?: number;
    onCommandsChange?: ((commands) => void);
    preferFormula?: boolean;
    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)

Notify that there is a new map of commands

Type declaration

    • (commands): void
    • Parameters

      Returns void

preferFormula?: boolean
sheetModel?: ISheetModel

used for commands will be removed

useRichStyling?: boolean

Override defaultText styling with cellStyling?

zoom?: number

Methods