PDA

View Full Version : Problem instantiating a menu object



tf.alves
3 Mar 2010, 3:51 PM
Hello everyone, I'm a beginner dealing with ExtJS, and I have a problem.
What is the proper way to instantiate a menu type object?
I tried:
var m = new menu();
var m = new Ext.Menu();
var m = new Ext.menu();

All to no avail, firebug tells me that this is not a constructor. What am I doing wrong? Am I supposed to link another .js file? how?

Thanks!

8 Mar 2010, 5:46 AM
It's


new Ext.menu.Menu({
items : [ /* your items here */]
});

tf.alves
8 Mar 2010, 6:46 AM
It's


new Ext.menu.Menu({
items : [ /* your items here */]
});




Thanks! It worked like a charm =D>