fenuk
4 Dec 2010, 11:40 AM
i have this example:
Ext.onReady(function(){
new Ext.Window({
title : "Window",
height : 400,
width : 400,
items : new Ext.FormPanel({
labelWidth: 75,
frame:true,
title: 'Simple Form',
width: 350,
defaults: {width: 230},
defaultType: 'textfield',
items: [{
fieldLabel: 'First Name',
name: 'first'
}],
buttons: [{
text: 'Some function',
handler: function() { <!--function must close window--> }
}]
})
}).show()
})
what need do, that function close window?
Ext.onReady(function(){
new Ext.Window({
title : "Window",
height : 400,
width : 400,
items : new Ext.FormPanel({
labelWidth: 75,
frame:true,
title: 'Simple Form',
width: 350,
defaults: {width: 230},
defaultType: 'textfield',
items: [{
fieldLabel: 'First Name',
name: 'first'
}],
buttons: [{
text: 'Some function',
handler: function() { <!--function must close window--> }
}]
})
}).show()
})
what need do, that function close window?