PDA

View Full Version : How to customize the Msg box?



manlsea
28 Mar 2012, 9:48 PM
Ext.Msg.show({
title: 'Please choose',
//msg: actions[24],
items:
{ xtype: 'fieldcontainer',
fieldLabel: 'Conditions',
defaultType: 'radiofield',
defaults: {
flex: 1
},
layout: 'hbox',
items:
[{
boxLabel: 'Carton',
name: 'action',
//checked: true,
inputValue: 'Carton'
}, {
boxLabel: 'SerialNo',
name: 'action',
inputValue: 'SerialNo'
}]
},
layout: 'fit',
buttons: Ext.Msg.OKCANCEL,
icon: Ext.Msg.QUESTION,
fn: function (btn, text) {
if (btn == 'ok') {
alert(text);
}
}
});

Why items does not show?

vietits
28 Mar 2012, 10:12 PM
Ext.Msg.show() does not support items config.

manlsea
28 Mar 2012, 11:36 PM
thank's