Results 1 to 3 of 3

Thread: Problem instantiating a menu object

  1. #1
    Sencha User tf.alves's Avatar
    Join Date
    Feb 2010
    Location
    Portugal
    Posts
    54

    Default Problem instantiating a menu object

    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!

  2. #2
    Sencha User jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    DC Area =)
    Posts
    16,364

    Default

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

  3. #3
    Sencha User tf.alves's Avatar
    Join Date
    Feb 2010
    Location
    Portugal
    Posts
    54

    Default

    Quote Originally Posted by [email protected] View Post
    It's
    Code:
    new Ext.menu.Menu({
        items : [ /* your items here */]
    });
    Thanks! It worked like a charm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •