RibbonLayoutMode Type
Classic is the default density. Compact displays a curated single command row; each group menu retains the complete existing controls. Narrow hosts can scroll commands horizontally.
Syntax
type RibbonLayoutMode = 'classic' | 'compact';
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.layout = 'compact';
return editor;
}
See Also
Replace YOUR_SIGNED_LICENSE with your issued Trial, Developer or OEM token before running the editor example.