extjs6.0专题

ExtJs6.0之RadioGroup的使用

RadioGroup基本使用 官方文档传送门:http://docs.sencha.com/extjs/6.0.0/classic/Ext.form.RadioGroup.html 新建radio项数组 authType = 1;var typeItems = [{ boxLabel: '角色', name: 'authType', inputValue: '1', checked: f

ExtJs6.0 之Ajax异步提交

代码演示 新建提交按钮 js页面代码 Ext.onReady(function(){sub_but = Ext.create('Ext.button.Button', {renderTo:'submit_button',text:'提交',height: 30,width: 100,handler:function(){submitForm();}});}); jsp页面代码 <di

ExtJs6.0之Grid前端导出Excel

该js文件支持三级表头的导出。 引入该js文件,调用grid2Excel(grid, fileName)即可。 新建导出按钮 new Ext.create('Ext.button.Button',{ xtype:'button', iconCls:'excel', type: 'excel', text:'保存为Excel', handler:function() { //grid 为E

ExtJs6.0之File上传组件

文件上传框的创建方式 创建Panel,添加文件上传组件 var uploadForm =Ext.create('Ext.form.Panel', {//renderTo:'uploadForm',items: [Ext.create('Ext.form.field.File', {fieldLabel:'附件',labelAlign:'right',msgTarget:'side',name

ExtJs6.0之tbar多行显示

创建toolbar toolbarTop = new Ext.toolbar.Toolbar({// dock: 'top',renderTo: Ext.grid.GridPanel.tbar,items: [addBut, delBut, searchText, searchBut, grid2ExcelBut]});toolbarBottom = new Ext.toolbar