
ExtJS
果冻村长
智者顺时而谋,愚者逆时而动。
展开
-
ComboBox 默认选中值
listeners : { render : function(combo) { combo.setValue("中国"); //设置默认选中值 } }原创 2010-09-15 09:27:00 · 614 阅读 · 0 评论 -
Ext:动态更换主题(皮肤)
核心代码就一句话: Ext.util.CSS.swapStyleSheet('window', 'JSLib/ext/resource/css/'+combo.getValue()+'.css');下面使用下拉菜单更换主题:{ xtype: 'combo', store: new Ext.data.SimpleStore({ fields: ['id', 'theme-view','theme-va原创 2010-09-15 09:32:00 · 1189 阅读 · 0 评论 -
Ext:动态更换主题(皮肤)
<br />Cookie.js<br />/** * @name Cookie.js * 这应该是一个比较老式的cookie工具了,如果想用这个工具类保存一下 * 不重要的东西还是可以的(如状态等等),用户名和密码就别想了 */ /** * 保存 * @param {Object} name * @param {Object} value */ JpkFrame.saveCookie = function(name, value){ //保存一个月 var saveD原创 2010-09-15 09:38:00 · 2195 阅读 · 0 评论 -
ExtJS4下拉树组件
/** *下拉树类(Jelly) */ Ext.define('Redm.commons.TreeCombox', { extend: 'Ext.form.field.Picker', xtype: 'treecombox', triggerCls: Ext.baseCSSPrefix + 'form-arrow-trigger', config: {原创 2012-06-01 13:28:03 · 5418 阅读 · 2 评论