弱弱的问一下,ExtJS插件,除了引用的方式加载外,还有没有别的方式?
比如说,放那个文件夹下,ExtJS就会自动识别加载该插件?
现在使用 这个Ext.ux.grid.RowExpander,我是引用这个类对应的JS文件。各位知道的麻烦告知下。知道不行的也麻烦说下,,我就不在这上面花时间啦。,谢谢各位
比如说,放那个文件夹下,ExtJS就会自动识别加载该插件?
现在使用 这个Ext.ux.grid.RowExpander,我是引用这个类对应的JS文件。各位知道的麻烦告知下。知道不行的也麻烦说下,,我就不在这上面花时间啦。,谢谢各位
plugins:[Ext.ux.grid.RowExpander()],这是我一个创建一个from 的 plusins 的例子,插件可以将所有form 字段清空 this.${menuid}form = new Ext.FormPanel({
labelSeparator : ':',
frame : true,
border : true,
labelAlign : 'right',
labelWidth : 90,
buttonAlign : 'center',
plugins:[new Ext.ux.FormClear()], autoScroll : true,
defaults :{ scope : this },
然后就可以用
plugins:[Ext.ux.grid.RowExpander()]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>muban</title>
<link rel="stylesheet" type="text/css" href="ext/ext-4.0.0-gpl/ext-4.0.0/resources/css/ext-all.css" />
<script type="text/javascript" src="ext/ext-4.0.0-gpl/ext-4.0.0/bootstrap.js"></script>
<script>
Ext.onReady(function() {
//就可以写ext程序 了。
});
</script>
</head>
就是这样引用啊,还想怎样?