TX Sheet Control

RibbonDisplayMode Type

Interface

Expanded is the default. Tabs-only shows a tab strip and opens selected commands temporarily over the worksheet. Escape or an outside pointer press dismisses the panel; Ctrl+F1 toggles this mode.

Syntax

type RibbonDisplayMode = 'expanded' | 'tabs-only';

Examples

Use a mounted editor to configure the commands available for editing a report.

import { Spreadsheet } from '@txtextcontrol/tx-sheet-control';

function configureEditor(host: HTMLElement) {
    const editor = new Spreadsheet(host, {
        license: 'YOUR_SIGNED_LICENSE',
        height: 600,
        fontCatalogURL: '/assets/sheet/fonts/catalog.json',
    });
    editor.ui.ribbon.displayMode = 'tabs-only';
    return editor;
}

See Also

Replace YOUR_SIGNED_LICENSE with your issued Trial, Developer or OEM token before running the editor example.