Buttons by default are simply created in Ext.window.MessageBox.makeButton () a private method based on Ext.window.MessageBox.buttonIds config and show / hide based on a bitmask buttons: Ext.Msg.YESNOCANCEL.
buttonIds :
Ext.define('Ext.overrides.MessageBox', {
override: 'Ext.window.MessageBox',
OK: 1,
CANCEL: 2,
NO: 4,
YES: 8,
OKCANCEL: 3,
YESNO: 12,
YESNOCANCEL: 14,
buttonIds: [
'ok', 'cancel', 'no', 'yes'
]
});
Ext.Msg/Ext.MessageBox Ext.window.MessageBox ( Ext.MessageBox).
, Ext.Msg/Ext.MessageBox, :
Ext.Msg = Ext.MessageBox = new Ext.window.MessageBox();
.