1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    27
    Vote Rating
    0
    Chirieac is on a distinguished road

      0  

    Default List component without a store, for menu navigation

    List component without a store, for menu navigation


    Hello!

    I have to make a menu navigation that looks like the attached image.
    It looks like a list so my first attempt was to use the list component because of the disclosure icons, events like itemtap etc.
    But, is there a way I could create it without a store?
    It seems too much the need to create a store for that.

    How could I create it with hard-coded values without the need of a store/model?

    list-menu.jpg

  2. #2
    Sencha User bclinton's Avatar
    Join Date
    Nov 2007
    Posts
    274
    Vote Rating
    6
    bclinton will become famous soon enough

      0  

    Default


    You could do something like this and use css to make it look how you want:


    Code:
                xtype: 'panel',
                html: 'menu 1',
                listeners: {
                    afterrender: function(c) {
                        c.body.on('click', function() {
                            alert('menu 1 clicked');
                        })
                    }
                }

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    South Africa
    Posts
    7
    Vote Rating
    0
    DigitalDog is on a distinguished road

      0  

    Default


    Hi Chirieac,

    Did you find a solution to your problem? I am trying to do the exact same thing.

    Any help would be appreciated.

    Thanks

Thread Participants: 2