在我当前的项目中,我使用的是ExtJs3.3。
我已经创建了许多具有私有变量和函数的类。例如:
MyPanel = function(config){
config = config || {};
var bar = 'bar';//private variable
function getBar(){//public function
return bar;
}
function foo(){
//private function
}
Ext.apply(config, {
title: 'Panel',
有一个symfony 2项目使用了extjs4前端。我从一个extjs包开始,它现在包含了整个extjs应用程序。问题是,随着项目的发展,它将很难管理。
我认为,最好的解决方案是将所有extjs文件重新定位到相关的包中
(例如:发送到UserBundle所有窗体、面板、网格等)并使用中央Extjs包来加载它们。
以这种方式组织项目的最佳实践是什么?
And how to include the js files from another bundle?
Or should I create extjs app to every bundle (I'm not sure it w
我是EXTJS4的学生..
首先,请看下面的代码..这是我的Ext.Img项目..
var paddleItem = {
xtype : 'image',
src : "lib/Image/Paddle.png",
x : 0,
y : 0,
draggable : true,
index : 0,
id : 'paddleItem',
name : 'Paddle',
wi