PDA

View Full Version : How to set default value in MessageBox?



dekely
19 Nov 2013, 12:59 PM
Hi All,
It appears that the valur property doesn't work.
How can I set an initial value to the promp?

https://fiddle.sencha.com/#fiddle/1lk

(https://fiddle.sencha.com/#fiddle/1lk)

Johnny Major
19 Nov 2013, 6:09 PM
You have a typo in value...



Ext.application({
name : 'Fiddle',


launch : function() {
Ext.MessageBox.show({
title: 'Title',
msg: 'Message',
width:300,
buttons: Ext.MessageBox.OKCANCEL,
multiline: true,
//vale: 'no value',
value : 'no value',
fn: function(btn, value){
if(btn == 'ok'){
//update comment
}
}
});
}
});

dekely
19 Nov 2013, 9:24 PM
Thanks!