TX Sheet Control

RibbonItem.visible Property

Property

Effective visibility policy, including ancestors. It does not report actual onscreen presence, active tabs, contextual availability, overflow or scrolling.

Owner: RibbonItem. Package: @txtextcontrol/tx-sheet-control.

Syntax

visible: boolean;

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',
    });
    const reporting = editor.ui.ribbon.items.find(item => item.id === 'reporting');
    if (reporting?.visible) {
        editor.ui.ribbon.configure({ tabs: { [reporting.id]: { visible: false } } });
    }
    return editor;
}

Remarks

Settings belong to the editor, survive workbook loads and are excluded from workbook serialization. Item policies customize screen commands; they do not restrict workbook API calls or keyboard editing. Use worksheet protection for document editing rules.

See Also

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