PDA

View Full Version : URL for TabPanel Sub-Menu



zakif
27 Apr 2012, 12:24 AM
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
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:


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

scottmartin
27 Apr 2012, 8:43 AM
URL should be relative to your app: url: 'menu/language'.

Not sure I understand your question.

Regards,
Scott.

zakif
29 Apr 2012, 7:52 PM
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.


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]
}

zakif
1 May 2012, 2:16 AM
I've found this conversation in another forum thread:

http://www.sencha.com/forum/showthread.php?173195-Links-in-one-tab-panel-that-take-me-to-another-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 (http://docs.sencha.com/ext-js/3-4/#%21/api/Ext.TabPanel-cfg-boxMaxWidth) ?

Thanks in adnvance.

Best regards,
Zaki