javascript - extend messagebox in extjs 4 -


i created new view class extends ext.window.messagebox when try show it, gives me error :

uncaught typeerror: cannot call method 'setvisible' of null  

my code :

ext.define('view.forms.mybox', { extend : 'ext.window.messagebox', alias : 'widget.info', xtype : 'forms-info',  resizable : false,   //closable : false --> removed  layout : 'vbox', padding : 5, width : 400, height : 160,  showmessage: function() {      console.log('show message')      var me = this;      me.show({                    title: 'title foo!',         msg: 'test', closable : false, // added here         icon: ext.messagebox.warning,                 });      } }); //eoc mybox 

what possible causes of this?

the problem you've misspelled "closeable" - have "closable".

edit: sorry - not correct. i've removed example.


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

qt - Errors in generated MOC files for QT5 from cmake -