ExtJS使用技巧小结
?
第一点:更换ExtTree的节点图标
???? 步骤:找到ext-all.css查找一下代码
???
?
?????????? 再引入自己的js才可以。不然会提示错误的。
第四点:如果想在ExtPanel或者ExtWindow中嵌入网页,那么该怎么办呢
?? 第一种方式:autoLoad: {url: '/public/html/company.html', scripts: true},
?? 第二种方式:html:'<iframe id=thisIframe width=770 height=480 frameborder=0????? scrolling=auto? src=index.jsp></iframe>'
?? 推荐使用第二种方式,第一种有时候作用不大
?第五点:禁用右键菜单项
????
var styleMenu = new Ext.menu.Menu({ items: [{ text: '主题选择', id: 'style', menu: new Ext.menu.Menu({ items: [{ text: '红色主题', checked: true, group: 'theme' }, { text: '蓝色主题', checked: false, group: 'theme' }, { text: '黑色主题', checked: false, group: 'theme' }] }) }, { text: '启用主题', checked: true, checkHandler: function() { Ext.getCmp('style').setDisabled(!this.checked) } }] });?
?