SheetXL - v0.3.20
    Preparing search index...

    Interface WorkbookRefProps

    For elements that also need the ref. Less common but some factory renderers

    interface WorkbookRefProps {
        autoFocus?: boolean | FocusOptions;
        commands?: IGroup;
        contextMenuSx?: SxProps<Theme>;
        createWorkbookOptions?: ConstructorOptions;
        forceLightImages?: boolean;
        formulaBarProps?: FormulaBarProps;
        gridTheme?: Theme;
        headersTheme?: Theme;
        loadingPanelProps?: LoadingPanelProps;
        notifier?: Notifier;
        onElementLoad?: (event: WorkbookLoadEvent) => void;
        onNewWorkbook?: () => void;
        onRepeatCommandChange?: (command: ICommand<any, any>) => void;
        renderContextMenu?: (props: WorkbookContextMenuProps) => ReactElement;
        renderFilterMenu?: (props: FilterColumnMenuProps) => ReactElement;
        renderFormulaBar?: (
            props: FormulaBarProps,
            ref: Ref<IFormulaBarElement>,
        ) => ReactElement;
        renderLoadingPanel?: (props: LoadingPanelProps) => ReactElement;
        renderMovableMenu?: (props: MovableContextMenuProps) => ReactElement;
        renderSheet?: (props: SheetProps) => ReactElement;
        renderStatusBar?: (props: StatusBarProps) => ReactElement;
        renderTabs?: (props: WorkbookStripProps) => ReactElement;
        renderToolbar?: (props: WorkbookToolbarsProps) => ReactElement;
        sheetProps?: SheetProps;
        showFormulaBar?: boolean;
        showHorizontalScrollbar?: boolean;
        showStatusBar?: boolean;
        showTabs?: boolean;
        showVerticalScrollbar?: boolean;
        statusBarProps?: StatusBarProps;
        sx?: SxProps<Theme>;
        tabsProps?: WorkbookStripProps;
        toolbarProps?: WorkbookToolbarsProps;
        workbook?: IWorkbook;
    }
    Index

    Properties

    autoFocus?: boolean | FocusOptions

    Will autofocus to the sheet.

    false
    
    commands?: IGroup

    Additional commands provided by application.

    contextMenuSx?: SxProps<Theme>

    Allow for customizations on the context menu.

    createWorkbookOptions?: ConstructorOptions

    Options to use when a new Workbook is created.

    This is ignored if the model is provided externally. The default behavior is to use the options from the current workbook if provided.

    forceLightImages?: boolean

    If dark theme then the images will invert unless true.

    false
    
    formulaBarProps?: FormulaBarProps

    Allow for customizations on FormulaBar.

    gridTheme?: Theme

    Allow you to specify a specific material ui theme for the grid.

    - The current Theme.
    

    Useful for decorating the application with a single theme (such as dark mode) but render the main grid using a different theme (for example light mode).

    headersTheme?: Theme

    Allow you to specify a specific material ui theme for the headers.

    - The grid theme.
    
    loadingPanelProps?: LoadingPanelProps

    Allow for customizations on loading panel.

    notifier?: Notifier

    Configure the notifier to use for alerts.

    onElementLoad?: (event: WorkbookLoadEvent) => void

    Callback for when the workbook is loaded. Useful for hiding/showing loading panels.

    onNewWorkbook?: () => void

    Hook to perform a action on new workbook

    Type declaration

      • (): void
      • Returns void

    onRepeatCommandChange?: (command: ICommand<any, any>) => void

    Notify that there is a new repeatable command.

    renderContextMenu?: (props: WorkbookContextMenuProps) => ReactElement

    Render custom context menu.

    Type declaration

      • (props: WorkbookContextMenuProps): ReactElement
      • Parameters

        • props: WorkbookContextMenuProps

        Returns ReactElement

        A React Element representing the ContextMenu.

    renderFilterMenu?: (props: FilterColumnMenuProps) => ReactElement

    Render custom filter menu.

    Type declaration

      • (props: FilterColumnMenuProps): ReactElement
      • Parameters

        • props: FilterColumnMenuProps

        Returns ReactElement

        A React Element representing the FilterMenu.

    renderFormulaBar?: (
        props: FormulaBarProps,
        ref: Ref<IFormulaBarElement>,
    ) => ReactElement

    Render FormulaBar.

    Type declaration

      • (props: FormulaBarProps, ref: Ref<IFormulaBarElement>): ReactElement
      • Parameters

        Returns ReactElement

        A React Element representing the FormulaBar.

    renderLoadingPanel?: (props: LoadingPanelProps) => ReactElement

    Render custom loading panel.

    Type declaration

      • (props: LoadingPanelProps): ReactElement
      • Parameters

        • props: LoadingPanelProps

        Returns ReactElement

        A React Element representing the LoadingPane.

    renderMovableMenu?: (props: MovableContextMenuProps) => ReactElement

    Render custom movable menu.

    Type declaration

      • (props: MovableContextMenuProps): ReactElement
      • Parameters

        • props: MovableContextMenuProps

        Returns ReactElement

        A React Element representing the MovableMenu.

    renderSheet?: (props: SheetProps) => ReactElement

    Render custom ISheetElement.

    Type declaration

      • (props: SheetProps): ReactElement
      • Parameters

        • props: SheetProps

        Returns ReactElement

        A React Element representing the Sheet.

    renderStatusBar?: (props: StatusBarProps) => ReactElement

    Pass in a custom toolbar.

    Type declaration

      • (props: StatusBarProps): ReactElement
      • Parameters

        • props: StatusBarProps

        Returns ReactElement

        A React Element representing the StatusBar.

    renderTabs?: (props: WorkbookStripProps) => ReactElement

    Render custom tabs.

    Type declaration

    renderToolbar?: (props: WorkbookToolbarsProps) => ReactElement

    Pass in a custom toolbar.

    Type declaration

      • (props: WorkbookToolbarsProps): ReactElement
      • Parameters

        • props: WorkbookToolbarsProps

        Returns ReactElement

        A React Element representing the Toolbar.

    sheetProps?: SheetProps

    Allow for customizations on loading panel.

    showFormulaBar?: boolean

    Indicate if the formulaBar should be showing.

    'workbook model but can be overridden'
    
    showHorizontalScrollbar?: boolean

    Show the horizontal scrollbar

    showStatusBar?: boolean

    Shows the statusbar.

    'workbook model but can be overridden'
    
    showTabs?: boolean

    This doesn't influence # of tabs just the visibility of the widget.

    'workbook model but can be overridden'
    
    showVerticalScrollbar?: boolean

    Show the vertical scrollbar

    statusBarProps?: StatusBarProps

    Customizations for the status bar

    sx?: SxProps<Theme>
    tabsProps?: WorkbookStripProps

    Allow for customizations on tabs.

    toolbarProps?: WorkbookToolbarsProps

    Props for the toolbar.

    workbook?: IWorkbook

    A memory model of the workbook. If one is not provided a default workbook model will be used. This can be accessed via the workbook ref.