# SpreadsheetOptions.ribbon Property

> SpreadsheetOptions.ribbon property in the TX Sheet Control TypeScript API for Node.js, with its type RibbonOptions and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Node.js Server > SpreadsheetOptions > SpreadsheetOptions.ribbon Property
- **314 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/spreadsheetoptions/ribbon-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/spreadsheetoptions/ribbon-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/spreadsheetoptions/ribbon-property/llms-full.txt

---

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

```typescript
ribbon?: RibbonOptions;
```

### Examples

Use a mounted editor to configure the commands available for editing a report.

```typescript
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](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/llms-full.txt) for constructor and runtime examples.

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

---

## Nearby

- **Previous:** [SpreadsheetOptions.zoom Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/spreadsheetoptions/zoom-property/llms-full.txt)
- **Next:** [SpreadsheetOptions.highlightDependents Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/nodejs/spreadsheetoptions/highlightdependents-property/llms-full.txt)
