PDA

View Full Version : [API Docs] Ext.Msg.prompt



tobiu
11 Sep 2011, 8:51 AM
On the top of the page:



// Basic alert:
Ext.Msg.alert('Title', 'The quick brown fox jumped over the lazy dog.', Ext.emptyFn);

// Prompt for user data and process the result using a callback:
Ext.Msg.prompt('Name', 'Please enter your name:', function(button, text) {
// process text value and close...
});

// Confirmation alert
Ext.Msg.confirm("Confirmation", "Are you sure you want to do that?", Ext.emptyFn);


in the example of prompt (method description):


Ext.Msg.prompt(
'Welcome!',
'What\'s your name going to be today?',
function(button, value){
console.log(value)
},
null,
false,
null,
{ autocapitalize : true, placeholder : 'First-name please...' }
);