TX Sheet Control

SpreadsheetOptions.ribbon Property

Property

Initial ribbon presentation and built-in item policies for a mounted browser editor. Defaults to classic, expanded commands with all item policies enabled and visible.

Syntax

ribbon?: RibbonOptions;

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.configure({ layout: 'compact' });
    return editor;
}

Remarks

Pass the same object as the ribbon constructor option to apply it before the editor is displayed. A headless workbook has no ribbon. See the Ribbon Guide for constructor and runtime examples.

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