SpreadsheetOptions.ribbon Property
Initial ribbon settings for the mounted Angular editor. Changes to the component options merge the supplied ribbon settings into the current configuration.
Syntax
ribbon?: RibbonOptions;
Examples
Bind these options to the tx-sheet-control component's options input. The same policies remain in effect when a document is loaded.
import type { SpreadsheetOptions } from '@txtextcontrol/tx-sheet-control/angular';
const options: SpreadsheetOptions = {
height: 'fill',
fontCatalogURL: '/assets/sheet/fonts/catalog.json',
ribbon: {
layout: 'compact',
tabs: { reporting: { enabled: false } },
buttons: { 'home.font.bold': { enabled: false } },
},
};
Remarks
The default is classic, expanded presentation. See RibbonOptions for all policy fields and the ribbon guide for the runtime API. Item policies customize UI commands without restricting workbook API calls or keyboard editing.