NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: olu on November 12, 2012, 02:04:21 AM
-
Hi All,
Please how do i make the menu at the sidebar panel open one at a time. so that if i have one open and click on anothter the one open before closes and the clicked one opens
-
use Accordion menu type, not TaskPanel.
cheers
Bruce
-
Thanks Bruce, that did the trick but just one problem the menu is expanding to a certain size in all menus, so am having menus of just one item the height is the same with one with 7items so making it look very empty. Any way to get it to resize to amount of items in each menu
-
Hallo Olu,
To solve your problem follow this steps:
1.) go to procedure you have the menu on embed :
"Set jQuery Accordion Menu Options"
2.) write there this code:
loc:options = Choose(loc:options='','',clip(loc:options) & ',') & 'autoHeight: false , navigation: true'
compile and see the results :o)
Regards,
Robert
-
Hi Robert you are a star that worked perfectly. Thanks.
-
you welcome!
Robert
-
Hi All,
Just one more quick question on this if i wanted to have it that if a menu is already open and i click on the menu again, to get it to contract all menus?
-
Hi Olu,
for features of the Accordion widget see here;
http://jqueryui.com/accordion/
be sure to read the API to see the options that it has.
http://api.jqueryui.com/accordion/
Robert's already showed you the way in which you can translate those options into the loc:options field.
Cheers
Bruce
-
I think this is the option you want;
http://api.jqueryui.com/accordion/#option-collapsible
Bruce
-
The "Collapsible" option is displayed in the API documentation, but I cannot see any API documentation to an AutoHeight parameter even though I added the code displayed earlier in this thread and it worked fine. Where did the parameter come from? Same for Navigation?...
Mark
-
ok, the doc I pointed to with that link was to jQueryUI version 1.9.
The one being used by NetTalk 6 is 1.8.23
The following link is for the API docs for 1.8
http://api.jqueryui.com/1.8/
for accordion specifically; (widgets / accordion)
http://api.jqueryui.com/1.8/accordion/
jQueryUI 1.9 is a fairly large update and it has refactored some of the widgets (including accordion) to make the interfaces to the various widgets more consistent.
cheers
Bruce
-
Thanks. I'll keep an eye on the jQuery version being used within NetTalk down the road.
Mark