hi ,
am trying to extend Panel and add new Method to it to modify some properties of it
my code :
Code:
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
//launch :function(){
onReady :function(){
var cmp = this;
MyNewPanel=Ext.extend(Ext.Panel,{
fullscreen:true,
html:'hi'
});
p=new MyNewPanel({
});
p.changeHtmlTo('Hi Am Changed ');
}
});
so where i have to put the defination of the new method
Code:
function changeHtmlTo(html){
MyNewPanel.update(MyNewPanel);
}
it's not about changing the panel's html but the method is only for example
thanks 