# RibbonItem.enabled Property

> RibbonItem.enabled property in the TX Sheet Control TypeScript API for the browser, with its type boolean and a TypeScript example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Property
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > RibbonItem > RibbonItem.enabled Property
- **430 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/enabled-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/enabled-property/llms.txt
- **LLMs-Full URL:** 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.

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

### Syntax

```typescript
enabled: boolean;
```

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

- [RibbonItem](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/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:** [RibbonItem.parentId Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/parentid-property/llms-full.txt)
- **Next:** [RibbonItem.visible Property](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/ribbonitem/visible-property/llms-full.txt)
