2
私の質問はとても基本的だと思いますが、私はとにかく助けが必要です。事は..私は5枚のカード(パネルである)を持つカルーセルを持っていて、このパネルの中で私はすべて同じ私はここで何を意味するか例示するために5枚のカード。..同じパネルを複数回表示するにはどうすればよいですか?
は、コードのいくつかのサンプルです:だから
//Here I'm creating the panel
this.testeCard();
MYPROJ.UI.prototype.testeCard = function(){
var teste = new Ext.Panel({
html: 'teste teste teste',
style: 'background-color: #2f7da8'
});
this._registerView(teste,'teste');
return teste;
};
//Here I'm calling it
MYPROJ.UI.prototype.currentCard = function(){
var currentCard = new Ext.Panel({
id: 'currentCard',
cls: 'mainPanel',
//html: 'currentCard',
items:[
this.getView('teste') //Fine here
]
});
this._registerView(currentCard, 'currentCard');
return currentCard;
};
MYPROJ.UI.prototype.anotherCard = function(){
var currentCard = new Ext.Panel({
id: 'currentCard',
cls: 'mainPanel',
//html: 'currentCard',
items:[
this.getView('teste')
]
});
this._registerView(currentCard, 'currentCard');
return currentCard;
};
、私は何をしたい「currentCard」と「anotherCard」の両方でこの「精巣」カードを呼び出すことです
どうすればいいですか?