---
title: "Ext.toolbar.Item"
description: "xtype 为 tbitem 的 Ext JS 原生组件参考。"
---

> Documentation Index
> Fetch the complete documentation index at: https://ag.879818327.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Ext.toolbar.Item

源码定义：`ext-all-debug.js:46907`。分类：按钮、工具栏、菜单与标签页。

## 创建示例

```javascript
var component = Ext.create("Ext.toolbar.Item", {
  xtype: "tbitem",
  disable: Ext.emptyFn,
  enable: Ext.emptyFn,
  focus: Ext.emptyFn,
  renderTo: Ext.getBody()
});
```

## 属性

| 属性 | 类型 | 默认值 | 说明 | 配置示例 |
| --- | --- | --- | --- | --- |
| `disable` | `Mixed` | `Ext.emptyFn` | 配置组件的 `disable` 选项。 | `disable: Ext.emptyFn` |
| `enable` | `Mixed` | `Ext.emptyFn` | 配置组件的 `enable` 选项。 | `enable: Ext.emptyFn` |
| `focus` | `Mixed` | `Ext.emptyFn` | 配置组件的 `focus` 选项。 | `focus: Ext.emptyFn` |

## 方法

源码中未找到该组件自身声明的实例方法；可使用继承的方法。

## 事件

源码中未找到该组件自身注册的事件；可监听继承事件。

Source: https://ag.879818327.xyz/ext/navigation/toolbar-item/index.mdx
