---
title: "Ext.toolbar.Fill"
description: "xtype 为 tbfill 的 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.Fill

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

## 创建示例

```javascript
var component = Ext.create("Ext.toolbar.Fill", {
  xtype: "tbfill",
  ariaRole: 'presentation',
  flex: 1,
  isFill: true,
  renderTo: Ext.getBody()
});
```

## 属性

| 属性 | 类型 | 默认值 | 说明 | 配置示例 |
| --- | --- | --- | --- | --- |
| `ariaRole` | `String` | `'presentation'` | 组件在辅助技术中的 ARIA 角色。 | `ariaRole: 'presentation'` |
| `flex` | `Number` | `1` | 配置组件的 `flex` 选项。 | `flex: 1` |
| `isFill` | `Boolean` | `true` | 控制是否启用 `isFill` 行为。 | `isFill: true` |

## 方法

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

## 事件

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

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