TX Sheet Control

EditorUi.ribbon Property

Property

The browser editor ribbon exposes presentation settings, item policies and a catalog of built-in controls.

Syntax

readonly ribbon: RibbonApi;

See RibbonApi for the complete controller. A headless server workbook has no mounted ribbon.

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', buttons: { 'home.font.bold': { enabled: false } } });
    return editor;
}

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