查看“ExtJS6”的源代码
←
ExtJS6
跳转至:
导航
、
搜索
因为以下原因,你没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看并复制此页面的源代码:
==Resize page number field in ext.pagingtoolbar== You should be able to set it via: http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.toolbar.Paging-cfg-inputItemWidth "The width in pixels of the input field used to display and change the current page number." ==tagfield== <source lang="javascript"> { xtype: 'tagfield', fieldLabel: '相关主题', store: tag_store, value: ['2', '4'], flex: 1, name: 'tags[]', displayField: 'name', valueField: 'id', filterPickList: true } </source> ==actioncolumn== <source lang="javascript"> //第一种方法 { header: "操作", dataIndex: 'id', align: 'left', xtype: 'actioncolumn', name: 'opertation', items: [ { //text: '编辑', icon: '/js/MyApp/ext/classic/theme-crisp-touch/resources/images/shared/icon-info.png', handler: function (grid, rowIndex, colIndex) { var record = grid.getStore().getAt(rowIndex); grid.up()._edit(record); //alert("Terminate " + rec.get('title')); } }, { //text: '删除', icon: '/js/MyApp/ext/classic/theme-crisp-touch/resources/images/shared/icon-error.png', handler: function (grid, rowIndex, colIndex) { var record = grid.getStore().getAt(rowIndex); grid.up()._delete(record.get('id')); } } ] } //第二种方法 { text: 'DELETE', align: 'center', stopSelection: true, xtype: 'widgetcolumn', widget: { xtype: 'button', Text: "编辑", defaultBindProperty: null, //important handler: function(widgetColumn) { var record = widgetColumn.getWidgetRecord(); me._edit(record); }, listeners: { beforerender: function(widgetColumn){ var record = widgetColumn.getWidgetRecord(); widgetColumn.setText( widgetColumn.Text ); //can be mixed with the row data if needed } } } } </source>
返回
ExtJS6
。
导航菜单
个人工具
登录
命名空间
页面
讨论
变种
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
帮助
工具
链入页面
相关更改
特殊页面
页面信息