随笔 - 127  文章 - 0  评论 - 1  阅读 - 40606

随笔分类 -  ExtJs

1 2 下一页
GridPanel 分页条增加项
摘要:gc.getDockedItems('toolbar[dock="bottom"]')[0].add({ text:'abcde',xtype:'netlabel' }); 注意:增加的项在底部条的最右侧 阅读全文
posted @ 2024-11-02 12:51 wakaka_wka 阅读(2) 评论(0) 推荐(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) 推荐(0) 编辑
Extjs Grid 清除列头筛选条件
摘要:gc.filterHeader.clearFilter(); 阅读全文
posted @ 2024-10-24 12:00 wakaka_wka 阅读(7) 评论(0) 推荐(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) 推荐(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) 推荐(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) 推荐(0) 编辑
ExtJs textArea 设置高度
摘要:{ id: 'xx', editable: true, xtype: 'textarea',fieldStyle:'min-height:100px;' }, 阅读全文
posted @ 2024-03-26 17:52 wakaka_wka 阅读(56) 评论(0) 推荐(0) 编辑
ExtJs datefield format
摘要: 阅读全文
posted @ 2023-09-27 11:55 wakaka_wka 阅读(5) 评论(0) 推荐(0) 编辑
ExtJs GridPanel 设置单元格背景色
摘要:css:.bgc{background:red;}js:App.colA.innerCls='bgc' 阅读全文
posted @ 2023-09-21 18:15 wakaka_wka 阅读(67) 评论(0) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(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) 推荐(0) 编辑
Extjs Panel 动态切换隐藏显示
摘要:panel.getEl().show()/hide()/toggle() 阅读全文
posted @ 2022-04-25 11:59 wakaka_wka 阅读(114) 评论(0) 推荐(0) 编辑
GridPanel 获取工具条控件
摘要:gc.getDockedItems("toolbar");//会返回顶部工具条和底部分页条 对返回的结果再判断其dock: "top"还是dock: "bottom" 来区分是顶部还是底部 阅读全文
posted @ 2022-04-25 11:31 wakaka_wka 阅读(21) 评论(0) 推荐(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) 推荐(0) 编辑

1 2 下一页
< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示