---
title: "Ext.grid.RowEditorButtons"
description: "xtype 为 roweditorbuttons 的 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.grid.RowEditorButtons

源码定义：`ext-all-debug.js:117375`。分类：数据视图、表格与树。

## 创建示例

```javascript
var component = Ext.create("Ext.grid.RowEditorButtons", {
  xtype: "roweditorbuttons",
  frame: true,
  position: 'bottom',
  shrinkWrap: true,
  renderTo: Ext.getBody()
});
```

## 属性

| 属性 | 类型 | 默认值 | 说明 | 配置示例 |
| --- | --- | --- | --- | --- |
| `frame` | `Boolean` | `true` | 控制是否启用 `frame` 行为。 | `frame: true` |
| `position` | `String` | `'bottom'` | 配置组件的 `position` 选项。 | `position: 'bottom'` |
| `shrinkWrap` | `Boolean` | `true` | 控制是否启用 `shrinkWrap` 行为。 | `shrinkWrap: true` |

## 方法

| 方法 | 参数 | 说明 | 调用示例 |
| --- | --- | --- | --- |
| `setButtonPosition` | `position` | 设置 `buttonPosition`。 执行时会更新 `position` 状态。源码涉及 `removeClsWithUI()`、`addClsWithUI()`。 | `component.setButtonPosition(...)` |
| `getFramingInfoCls` | `` | 读取并返回 `framingInfoCls`。 | `component.getFramingInfoCls()` |
| `getFrameInfo` | `` | 调用并直接返回父类的值，不对结果作额外转换。 | `component.getFrameInfo()` |

## 事件

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

Source: https://ag.879818327.xyz/ext/data/grid-roweditorbuttons/index.mdx
