Interface useSheetCommandsOptions

interface useSheetCommandsOptions {
    bodyStyle?: GridSurfaceStyle;
    cellSelection?: CellSelection;
    commandDependencies?: CommandMap;
    commandTarget: CommandTarget | (() => CommandTarget);
    commandsCopyPaste?: CommandMap;
    getViewport?: (() => ScrollableViewport);
    notifier?: Notifier;
    onGoto?: ((location) => Promise<IWorkbookRange>);
    onRepeatCommandChange?: ((command) => void);
    onStartEdit?: ((event) => void);
    sheetModel: ISheetModel;
}

Properties

bodyStyle?: GridSurfaceStyle
cellSelection?: CellSelection

If this is supplied then the sheet models selection is not used..

commandDependencies?: CommandMap
commandTarget: CommandTarget | (() => CommandTarget)

Type declaration

commandsCopyPaste?: CommandMap
getViewport?: (() => ScrollableViewport)

Returns the current viewport

Type declaration

Returns

Re

notifier?: Notifier
onGoto?: ((location) => Promise<IWorkbookRange>)

Type declaration

onRepeatCommandChange?: ((command) => void)

Notify that there is a new repeatable command

Type declaration

    • (command): void
    • Parameters

      Returns void

onStartEdit?: ((event) => void)

Type declaration

sheetModel: ISheetModel