# RibbonDisplayMode Type

> RibbonDisplayMode type alias in the TX Sheet Control TypeScript API for the browser, with its syntax and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Interface
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > RibbonDisplayMode Type
- **314 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbondisplaymode/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbondisplaymode/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbondisplaymode/llms-full.txt

---

Expanded is the default. Tabs-only shows a tab strip and opens selected commands temporarily over the worksheet. Escape or an outside pointer press dismisses the panel; Ctrl+F1 toggles this mode.

### Syntax

```typescript
type RibbonDisplayMode = 'expanded' | 'tabs-only';
```

### 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.displayMode = 'tabs-only';
    return editor;
}
```

### See Also

- [RibbonApi](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonapi/llms-full.txt)

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

---

## Nearby

- **Previous:** [RibbonLayoutMode Type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonlayoutmode/llms-full.txt)
- **Next:** [OpenDocumentSpreadsheetLoadOptions Interface](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/opendocumentspreadsheetloadoptions/llms-full.txt)
