1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    49
    Vote Rating
    0
    zakif is on a distinguished road

      0  

    Default URL for TabPanel Sub-Menu

    URL for TabPanel Sub-Menu


    There is a grouptabpanel contain several menu and sub-menu items with grid inside. For now, there is one and only way to access them all through
    Code:
    http://myweb.com/admin/public/
    .

    Let say there is a Configuration menu and Language sub-menu. The problem is, how to define a proper url, to get access directly to Language sub-menu. For example, the URL should be like http://myweb.com/admin/public/menu/language

    Here is the initial code:

    Code:
    xtype: 'grouptabpanel',
                tabWidth: 200,
                activeGroup: 6,
                items: [
                {
                    expanded: true,
                    items: [
                             {
                        xtype: 'portal',
                        title: 'Configuration',
                        tabTip: 'Dashboard tabtip',
                        autoHeight: true,
                        
                    },{
                        title: 'Language',
                        itemId: 'language',
                        url : 'main/test2',
                        layout: 'fit',
                        iconCls: 'x-icon-tickets',
                        tabTip: 'Language tabtip',
                        style: 'padding: 10px;',
                        items:[languages_grid]
                    }
    How to achieve that? Any advices or solutions really really appreciated.

    Thanks in advance.

    Regards,
    zakif

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,083
    Vote Rating
    467
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    URL should be relative to your app: url: 'menu/language'.

    Not sure I understand your question.

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    49
    Vote Rating
    0
    zakif is on a distinguished road

      0  

    Default Still Failed

    Still Failed


    Thanks a lot scott for your reply.

    All I mean is like make a url for any menu/sub-menu for every items inside a grouptabpanel. In common html, it usually something like http://mywebsite.com/title-post/comments#234 (with hashtag).

    I've tried your suggestion, but still failed. Then, I've tried the following code but still failed too:

    How to solve that?

    Thanks in advance.

    Code:
    xtype: 'grouptabpanel',             
    tabWidth: 200,             
    activeGroup: 6,
                 items: [             {
                     expanded: true,                 
    items: [                          { 
                        xtype: 'portal', 
                        title: 'Configuration', 
                        tabTip: 'Dashboard tabtip', 
                        autoHeight: true,                     
    contentEl: 'menu'                                      
    },{                     
    title: 'Language',
                         itemId: 'language',                     
    contentEl: 'language',                     
    layout: 'fit',                     iconCls: 'x-icon-tickets',                     
    tabTip: 'Language tabtip',                     
    style: 'padding: 10px;', 
                        items:[languages_grid]                 
    }

  4. #4
    Sencha User
    Join Date
    Jul 2011
    Posts
    49
    Vote Rating
    0
    zakif is on a distinguished road

      0  

    Default Almost Solved

    Almost Solved


    I've found this conversation in another forum thread:

    http://www.sencha.com/forum/showthre...ther-tab-panel

    The tabpanel item is just completed by id, ref, and itemId. But still, I can't replicate the suggested solution.

    How to solve that? How to create a clickable link like: http://docs.sencha.com/ext-js/3-4/#!/api/Ext.TabPanel-cfg-boxMaxWidth ?

    Thanks in adnvance.

    Best regards,
    Zaki

Thread Participants: 1

Tags for this Thread