extjs6-classic - 如何设置 RowEditing 插件的样式
解决方案
网格位于表单定义内。它继承了fieldDefaults
,所以我不得不将它们移动到字段集定义内并将网格留在它之外:
Ext.define('App.view.Test', {
extend: 'Ext.form.Panel',
xtype: 'test-form',
layout: 'vbox',
bodyPadding: 20,
fieldDefaults: { //defined here will affect the roweditor plugin
labelAlign: 'top',
margin: 20
},
items: [
{
xtype: 'fieldset',
//fieldDefaults should be moved here and leave the grid untouched
items: [...]
},
{
xtype: 'grid',
[...]
}
});
推荐阅读
- javascript - 如何显示猫头鹰旋转木马的所有项目?
- python - 无法打开文件“menu.py”:[Errno 2] 没有这样的文件或目录
- java - 您的 SQL 语法有错误;检查与您的 MySQL 服务器版本相对应的手册,以获取在 'order 附近使用的正确语法
- html - DIV元素没有出现滚动条 - ReactJS
- c# - 在 ASP.net 核心 MVC 中下载具有 UTF-8(泰语)文件名的文件
- java - java - 如何区分未设置的属性和在java中设置为null的属性?
- branch.io - 是否可以更新深层链接而不是创建新链接?
- android - segment.io 服务器是否真的将事件路由到多个目的地或移动 sdk?
- java - 如何将 gradle 复合构建包含到多项目构建中?
- fish - 编写 __fish_is_first_arg,但包含 arg 的参数