# RibbonOptions.displayMode Property

> RibbonOptions.displayMode property in the TX Sheet Control TypeScript API for the browser, with its type RibbonDisplayMode and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > RibbonOptions > RibbonOptions.displayMode Property
- **368 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonoptions/displaymode-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonoptions/displaymode-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonoptions/displaymode-property/llms-full.txt

---

Initial command display, defaulting to `expanded`. Tabs-only retains the chosen density.

Owner: [RibbonOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonoptions/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`.

### Syntax

```typescript
displayMode?: RibbonDisplayMode;
```

### 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({ displayMode: 'tabs-only' });
    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

- [RibbonOptions](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonoptions/llms-full.txt)
- [Ribbon Guide](https://docs.textcontrol.com/tx-sheet-control/spreadsheet-editor/ribbon/llms-full.txt)

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

---

## Nearby

- **Previous:** [RibbonOptions.layout Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonoptions/layout-property/llms-full.txt)
- **Next:** [RibbonOptions.tabs Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonoptions/tabs-property/llms-full.txt)
