Interface FormulaBarProps

interface FormulaBarProps {
    disabled?: boolean;
    draggingSelection?: CellSelection;
    editStateAndCoords?: EditorStateAndCoords<ICellModel, string>;
    gridStyle?: GridStyle;
    namedRangesEditorProps?: NamedRangesEditorProps;
    onCommandsChange?: ((commands) => void);
    onEditStateAndCoordsChange?: ((editStateAndCoords) => void);
    renderNamedRangesEditor?: ((props, ref) => ReactElement<any, string | JSXElementConstructor<any>>);
    sheet?: SheetElement;
    showNamedRangesEditor?: boolean;
    sx?: SxProps<Theme>;
    workbookModel?: IWorkbookModel;
}

Hierarchy

  • HTMLAttributes<HTMLDivElement>
    • FormulaBarProps

Properties

disabled?: boolean
draggingSelection?: CellSelection
editStateAndCoords?: EditorStateAndCoords<ICellModel, string>
gridStyle?: GridStyle
namedRangesEditorProps?: NamedRangesEditorProps

Allow for customizations on NamedRangesEditor

onCommandsChange?: ((commands) => void)

Key down listeners

Type declaration

    • (commands): void
    • Parameters

      Returns void

onEditStateAndCoordsChange?: ((editStateAndCoords) => void)

Type declaration

renderNamedRangesEditor?: ((props, ref) => ReactElement<any, string | JSXElementConstructor<any>>)

Override the default NamedRangesEditor

Type declaration

    • (props, ref): ReactElement<any, string | JSXElementConstructor<any>>
    • Parameters

      • props: NamedRangesEditorProps
      • ref: Ref<NamedRangesEditorElement>

      Returns ReactElement<any, string | JSXElementConstructor<any>>

sheet?: SheetElement
showNamedRangesEditor?: boolean

If the NamedRangesEditor should be shown.

Default Value

true
sx?: SxProps<Theme>

MUI SX props

workbookModel?: IWorkbookModel

The workbook model that is used for the range