SheetXL - v1.0.7
    Preparing search index...

    Interface WorkbookStripProps

    MUI flavor of the workbook tab strip. A thin wrapper around the chromeless @sheetxl/react!WorkbookStrip: it delegates all of the tab/scroll/rename machinery and layers on only the MUI-specific chrome — the ripple tab surface, the "all sheets" menu, the per-tab context menu and the tooltip-wrapped scroll buttons — through the strip's render seams.

    interface WorkbookStripProps {
        condensed?: boolean;
        disabled?: boolean;
        onBeforeUserChange?: (index: number) => boolean | void;
        onUserChange?: (index: number) => void;
        propsSheetsAll?: SheetsAllMenuProps;
        propsSheetTab?: Partial<SheetTabProps>;
        propsSheetTabMenu?: Partial<SheetTabMenuProps>;
        readOnly?: boolean;
        renderSheetsAll?: RenderSlotFn<SheetsAllMenuProps>;
        renderSheetTab?: RenderSlotFn<SheetTabProps>;
        renderSheetTabMenu?: RenderSlotFn<SheetTabMenuProps> | null;
        seam?: boolean;
        workbook: IWorkbook;
    }

    Hierarchy

    • Omit<
          ReactWorkbookStripProps,
          | "renderSheetTab"
          | "onTabContextMenu"
          | "renderScrollButtonStart"
          | "renderScrollButtonEnd"
          | "renderScrollButtonEdge",
      >
      • WorkbookStripProps
    Index
    condensed?: boolean

    Condensed (detached) layout: the strip is separated from the grid — e.g. stacked under the scrollbar on a small screen. The selected tab uses a plain rounded tab (rather than the inverted, open-top shape that reads as part of the grid above) and the scroll buttons are hidden. When false (default) the strip reads as an extension of the grid.

    false
    
    disabled?: boolean

    If true, the tab strip is disabled.

    false
    
    onBeforeUserChange?: (index: number) => boolean | void

    Type Declaration

      • (index: number): boolean | void
      • Called when the user has initiated a change to the active tab but before it has been rendered. Return false to cancel.

        Parameters

        • index: number

        Returns boolean | void

    onUserChange?: (index: number) => void

    Type Declaration

      • (index: number): void
      • Called after the tab has been changed.

        Parameters

        • index: number

        Returns void

    propsSheetsAll?: SheetsAllMenuProps

    Allow for customizations on the "all sheets" menu.

    propsSheetTab?: Partial<SheetTabProps>

    Allow for customizations on sheet tabs.

    propsSheetTabMenu?: Partial<SheetTabMenuProps>

    Allow for customizations on the per-tab context menu.

    readOnly?: boolean

    If true then the tab strips can not be modified but can still be selected.

    !workbook.getProtection().isStructureAllowed()

    renderSheetsAll?: RenderSlotFn<SheetsAllMenuProps>

    Render the "all sheets" menu.

    renderSheetTab?: RenderSlotFn<SheetTabProps>

    Render custom sheet tabs. Defaults to the MUI ripple tab (defaultRenderSheetTab).

    renderSheetTabMenu?: RenderSlotFn<SheetTabMenuProps> | null

    Render the per-tab context menu. null for none.

    seam?: boolean

    Draw the strip's segment of the seam framing the grid along its top edge. Off when the row above already draws that seam and nothing visible sits between them: the stacked layout on a touch device, where the scrollbar track is invisible and the tabs would get a second line 2px under the first.

    true
    
    workbook: IWorkbook

    The workbook. Required — the strip renders this workbook's sheets and cannot function without it.