1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    25
    Vote Rating
    0
    06011990 is an unknown quantity at this point

      0  

    Default Unanswered: List Navigation for kitchen sink model App

    Unanswered: List Navigation for kitchen sink model App


    I have developed an application based on the kitchen sink design.
    In that for a list on itemDisclosure I need to navigate to another js page having a menu.For example if it is a employee list on itemDisclosure I should get a page having menu on salary details,leave details etc.



    employee.List = new Ext.Panel ({
    layout : 'fit',
    items: [{
    title: 'Disclosure',
    layout: Ext.is.Phone ? 'fit' : {
    type: 'vbox',
    align: 'center',
    pack: 'center'
    },
    cls: 'demo-list',
    items: [{
    width: Ext.is.Phone ? undefined : 300,
    height: Ext.is.Phone ? undefined : 500,
    xtype: 'list',
    onItemDisclosure: function(record, btn, index) {

    -------------------------------


    },
    store: demos.ListStore, //getRange(0, 9),
    itemTpl: '<div class="contact"><strong>{firstName}</strong> {lastName}</div>'
    }]
    }]
    });


    i have to navigate to the employeeMenu.js


    Can anyone help me out for the same?




    Thanks in advance..

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,525
    Vote Rating
    872
    Answers
    3564
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    You can use a card layout with your list as the first item. On the disclosure icon tap, setActiveItem on the panel with card layout to switch to your desired class.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Thread Participants: 1