随笔分类 -  extjs

Extjs4 似bug非bug的东西修改
摘要:/** hzm modify * method: Ext.panel.Table.hasLockedColumns: function(columns) {} * function:支持extjs grid colums三元表达式,tbar支持三元表示 eg: user.users_type == 2 ? {text: "创建日期", flex: 1, dataIndex: 'create_time'} : null, var grid = Ext.create('Ext.grid.Panel', { columns: [ ... 阅读全文

posted @ 2014-04-11 16:49 hzm_frank 阅读(407) 评论(0) 推荐(0)

Extjs4 desktop 图标自动换行,横纵排列 图标大小修改
摘要:一、图标换行/*! * Ext JS Library 4.0 * Copyright(c) 2006-2011 Sencha Inc. * licensing@sencha.com * http://www.sencha.com/license *//** * @class Ext.ux.desktop.Desktop * @extends Ext.panel.Panel * This class manages the wallpaper, shortcuts and taskbar. */Ext.define('Ext.ux.desktop.Desktop', { exte 阅读全文

posted @ 2014-03-27 10:47 hzm_frank 阅读(1388) 评论(0) 推荐(0)

Extjs4 的一些语法 持续更新中
摘要:一、给GridPanel增加成两行toolbartbar: { xtype: 'container', layout: 'anchor', defaults: {anchor: '0'}, defaultType: 'toolbar', items: [{ items: [...] // toolbar 1 }, { items: [...] // toolbar 2 }]}二、去掉formPanel的边框var postForm = Ext.create('Ext.form.Panel', { style: 阅读全文

posted @ 2014-03-07 11:31 hzm_frank 阅读(269) 评论(0) 推荐(0)

Extjs 疑难杂症 (LoadMark 遮罩、Panel Update无效、chrome浏览器date控件全屏)
摘要:一、在extjs gridPanel中使用LoadMark无效,三步搞定。原代码:grid = new Ext.grid.GridPanel({ store: store, title:'资料列表', columns: [ new Ext.grid.RowNumberer(), sm, {id:'infoCode', header: "编码", width: 100, sortable: true, dataIndex: 'infoCode... 阅读全文

posted @ 2013-12-05 10:25 hzm_frank 阅读(971) 评论(0) 推荐(0)

Extjs grid demo
摘要:"> 所有关键字 --> 阅读全文

posted @ 2013-07-23 09:44 hzm_frank 阅读(529) 评论(0) 推荐(0)

IE6下extjs 弹窗不加载内容(无法执行内部js)的解决方案
摘要://需要导入的文件,这里的路径需要些你自己的路径 //用户信息var winUi;function openIframeUi() { Ext.onReady(function() { var url = 'user/update_user.jsp'; winUi = new Ext.Window({ width : width['ui_width'], height : height['ui_height'], param : window, title... 阅读全文

posted @ 2013-07-23 09:20 hzm_frank 阅读(408) 评论(0) 推荐(0)

Extjs 提示窗口
摘要:EXTJS----弹出窗口Ext.MessageBox1//Ext.MessageBox.alert()2Ext.MessageBox.alert('标题','内容',function(btn){3alert('你刚刚点击了'+btn);4});56//Ext.MessageBox.confirm()7Ext.MessageBox.confirm('选择框','你到底是选择Yes还是No?',function(btn){8alert('你刚刚点击了'+btn);9});1011//Ext.Messa 阅读全文

posted @ 2013-04-09 10:13 hzm_frank 阅读(264) 评论(0) 推荐(0)

Extjs 通用框架
摘要:<%@ page language="java" import="java.util.*, com.sxdf.rent.beans.*, java.sql.*" pageEncoding="UTF-8" %><%User u = (User)session.getAttribute("user");String items = "";if(u.getRole().getId() == 1) { items = " item1, item2, item3"; 阅读全文

posted @ 2012-11-10 15:49 hzm_frank 阅读(291) 评论(0) 推荐(0)

ExtJs 弹出窗口
摘要://需要导入的文件,这里的路径需要些你自己的路径 //防止弹出的框不消失,可以采用这种方法,当弹出下一个框时,上一个框自动关闭。var win ;function openWin(id, start) { Ext.onReady(function() { if (win != null ) { win.close(); } win = new Ext.Window({ width : 300, ... 阅读全文

posted @ 2012-11-10 15:47 hzm_frank 阅读(489) 评论(0) 推荐(0)

导航