# RibbonItem Interface

> RibbonItem interface in the browser TypeScript API: A detached catalog entry for a tab, group or control; use its language-independent ID as a key.

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

---

A detached catalog entry describes an existing tab, group or control. Use its language-independent ID as a configuration key, rather than its localized label.

Type-only browser declaration from `@txtextcontrol/tx-sheet-control`; it is not a runtime constructor.

### Syntax

```typescript
interface RibbonItem {
    id: string;
    type: 'tab' | 'group' | 'button';
    label: string;
    parentId?: string;
    enabled: boolean;
    visible: boolean;
}
```

### Members

| Member | Description |
|---|---|
| [id](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/id-property/llms-full.txt) | Language-independent scoped ID, stable across editor instances for the same built-in control. |
| [type](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/type-property/llms-full.txt) | Item category. The button category also includes selectors and input controls. |
| [label](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/label-property/llms-full.txt) | Current localized accessible label, useful for an application settings UI. It is not a stable configuration key. |
| [parentId](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/parentid-property/llms-full.txt) | Owning tab or group ID; omitted for top-level tabs. |
| [enabled](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/enabled-property/llms-full.txt) | Effective enabled policy, including ancestors and native control availability. Enabling policy does not override sheet protection or selection restrictions. |
| [visible](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/visible-property/llms-full.txt) | Effective visibility policy, including ancestors. It does not report actual onscreen presence, active tabs, contextual availability, overflow or scrolling. |

### 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',
    });
    const item = editor.ui.ribbon.items.find(item => item.id === 'home.font.bold');
    if (item) editor.ui.ribbon.configure({ buttons: { [item.id]: { enabled: false } } });
    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

- [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.

---

## In This Section

- [RibbonItem.enabled Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/enabled-property/llms-full.txt): RibbonItem.enabled property in the TX Sheet Control TypeScript API for the browser, with its type boolean and a TypeScript example.
- [RibbonItem.id Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/id-property/llms-full.txt): RibbonItem.id property in the TX Sheet Control TypeScript API for the browser, with its type string and a TypeScript example.
- [RibbonItem.label Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/label-property/llms-full.txt): RibbonItem.label property in the browser TypeScript API: The current localized accessible label, useful for a settings UI but not a stable configuration key.
- [RibbonItem.parentId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/parentid-property/llms-full.txt): RibbonItem.parentId property in the TX Sheet Control TypeScript API for the browser: Owning tab or group ID; omitted for top-level tabs.
- [RibbonItem.type Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/type-property/llms-full.txt): RibbonItem.type property in the TX Sheet Control TypeScript API for the browser: Item category. The button category also includes selectors and input controls.
- [RibbonItem.visible Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/visible-property/llms-full.txt): RibbonItem.visible property in the TX Sheet Control TypeScript API for the browser: Effective visibility policy, including ancestors.

---

## Nearby

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