PDA

View Full Version : ExtJS 4 or 4.1 MessageBox Custom Buttons



Awersione
4 Sep 2012, 4:23 AM
Ext.MessageBox.show({
title:'Messagebox Title',
msg: 'Are you sure want to delete?',
buttons: {yes: "Some Button 1",no: "Some Button 2",cancel: "Some Button 3"}
});


ExtJS 4 or 4.1 not supperted this code. Buttons not show.

droessner
4 Sep 2012, 6:50 AM
Try this:



Ext.MessageBox.show({
title:'Messagebox Title',
msg: 'Are you sure want to delete?',
buttons: Ext.Msg.YESNOCANCEL,
buttonText: {
yes: 'Some button 1',
no: 'Some button 2',
cancel: 'Some button 3'
}
});