GridPanel 分页条增加项
摘要:gc.getDockedItems('toolbar[dock="bottom"]')[0].add({ text:'abcde',xtype:'netlabel' }); 注意:增加的项在底部条的最右侧
阅读全文
posted @
2024-11-02 12:51
wakaka_wka
阅读(2)
推荐(0) 编辑
GridPanel 行过滤条件变化事件
摘要:gc.on('filterchange', function(store, filters, eOpts) { let nm = store.getCount(); console.log('过滤后显示条数:' + nm); });
阅读全文
posted @
2024-11-01 17:46
wakaka_wka
阅读(5)
推荐(0) 编辑
Extjs Grid 清除列头筛选条件
摘要:gc.filterHeader.clearFilter();
阅读全文
posted @
2024-10-24 12:00
wakaka_wka
阅读(7)
推荐(0) 编辑
ExtJs GridPanel 获取编辑行的下拉组件
摘要:Ext.getCmp('gc').on('beforeedit', function(editor, context) { if (context.field 'worker') { let cmb=context.column.getEditor().items.items[0]; cmb.get
阅读全文
posted @
2024-07-15 16:01
wakaka_wka
阅读(16)
推荐(0) 编辑
Panel 添加右侧操作图标
摘要:pnl.addTool({ type: 'expand', handler: function() { // 处理按钮点击事件的逻辑 debugger; } }); pnl.addTool({ type: 'collapse', handler: function() { // 处理按钮点击事件的逻
阅读全文
posted @
2024-06-03 11:45
wakaka_wka
阅读(7)
推荐(0) 编辑
gridpanel 自动定排序
摘要:// 定义自定义排序函数 function customSortFn(record1, record2) { // 根据 Remark 列的数据情况排序,让有数据的行排在最上面 if (record1.get('Remark') && !record2.get('Remark')) { return
阅读全文
posted @
2024-05-21 10:36
wakaka_wka
阅读(6)
推荐(0) 编辑
ExtJs textArea 设置高度
摘要:{ id: 'xx', editable: true, xtype: 'textarea',fieldStyle:'min-height:100px;' },
阅读全文
posted @
2024-03-26 17:52
wakaka_wka
阅读(56)
推荐(0) 编辑
ExtJs GridPanel 设置单元格背景色
摘要:css:.bgc{background:red;}js:App.colA.innerCls='bgc'
阅读全文
posted @
2023-09-21 18:15
wakaka_wka
阅读(67)
推荐(0) 编辑
ExtJs GridPanel 自定义汇总
摘要:{ text: '订单金额', dataIndex: 'amount', renderer: function(value){ return Ext.util.Format.number(value, '0.00'); }, summaryType: function(records) { var
阅读全文
posted @
2023-05-19 12:08
wakaka_wka
阅读(50)
推荐(0) 编辑
gridPanel关闭缓冲显示
摘要:gridPanel.getView().bufferedRenderer.disabled = true; var gridPanel = Ext.create('Ext.grid.Panel', { ... bufferedRenderer: false, ... }); gridPanel.ge
阅读全文
posted @
2023-02-13 14:55
wakaka_wka
阅读(19)
推荐(0) 编辑
GridPanel实时获取当前展示的数据条数
摘要:Ext.getStore('MyStore').on('datachanged', function(store) { console.log('The number of visible records has changed:', store.getCount());});
阅读全文
posted @
2023-02-13 14:09
wakaka_wka
阅读(20)
推荐(0) 编辑
gridpanel header click
摘要:var myGrid = Ext.Create('Ext.grid.Panel', { renderTo: 'shrGrid', renderTo: myGrid, store: myStore, //JSON object columns: myGrid.columns, //JSON objec
阅读全文
posted @
2022-11-04 10:10
wakaka_wka
阅读(14)
推荐(0) 编辑
ExtJs GridPanel column Text Color
摘要:CSS: .x-column-header-text-inner{ color:red; } JS: $('.x-column-header-text-inner').filter(function(){ return (/启用/i).test($(this).text())}).css('colo
阅读全文
posted @
2022-09-15 21:26
wakaka_wka
阅读(17)
推荐(0) 编辑
ExtJs xtype
摘要:xtype 类 box Ext.BoxComponent button Ext.Button colorpalette Ext.ColorPalette component Ext.Component container Ext.Container cycle Ext.CycleButton dat
阅读全文
posted @
2022-09-08 09:32
wakaka_wka
阅读(17)
推荐(0) 编辑
GridPanel 额外多增加一个toolbar
摘要:gc.addDocked(new Ext.Toolbar({ items: [ { xtype: 'button', text: 'Test add docked' } ]}), 0);
阅读全文
posted @
2022-08-03 18:22
wakaka_wka
阅读(13)
推荐(0) 编辑
extjs numberfield 不允许输入负数
摘要:allowExponential: false Ext.application({ name : 'Fiddle', launch : function() { Ext.create('Ext.form.Panel', { title: 'On The Wall', width: 300, body
阅读全文
posted @
2022-07-26 17:02
wakaka_wka
阅读(211)
推荐(0) 编辑
Extjs Panel 动态切换隐藏显示
摘要:panel.getEl().show()/hide()/toggle()
阅读全文
posted @
2022-04-25 11:59
wakaka_wka
阅读(114)
推荐(0) 编辑
GridPanel 获取工具条控件
摘要:gc.getDockedItems("toolbar");//会返回顶部工具条和底部分页条 对返回的结果再判断其dock: "top"还是dock: "bottom" 来区分是顶部还是底部
阅读全文
posted @
2022-04-25 11:31
wakaka_wka
阅读(21)
推荐(0) 编辑
无法访问此网站 raw.githubusercontent.com
摘要:Windows上可以这样办:上https://www.ipaddress.com查一下raw.githubusercontent.com的ipv4地址,比如我现在查到的是 打开C:/Windows/System32/drivers/etc/hosts文件,添加
阅读全文
posted @
2021-12-10 14:00
wakaka_wka
阅读(706)
推荐(0) 编辑