TreeMenuUser
Junior Member
Posts: 2
Registered: 11/5/2008
Member Is Offline
|
| posted on 11/5/2008 at 10:20 PM |
|
|
Single Click on menu item to open sub menu items
Hi Support,
I would like to open sub menu items in a single click on menu item.
Currently it is working
Single click on DownArrow Icon.
Double click on Menu item.
I have tried below example:
http://www.softcomplex.com/products/tigra_tree_menu_pro/docs/#api_examples
But still it is doing same thing.
The menu item should open when user click on single click.
It will be great if you could please let me know what files needs to change.
Thanks.
|
|
|
degruijterp
Junior Member
Posts: 8
Registered: 4/16/2005
Member Is Offline
|
| posted on 4/7/2009 at 12:56 PM |
|
|
Single click to open node works!
Hi all,
after looking everywhere, I finally go the 'single click to open node' to work.
In stead of the coding that is in the default template, use the following:
function onItemSelectHandler (o_item) {
// if node with no link then toggle
if (o_item.a_config[3] &&!o_item.a_config[1]) {
o_item.o_root.toggle(o_item.n_id);
// cancel default action
return false;
}
// proceed to default handler
return true;
}
Not a huge difference, but it works. of course, also add:
'onItemSelect':'onItemSelectHandler'
and make sure to see to it that you do or do not place a comma at the end of that line.
It only works with the PRO version I believe.
Have fun with it,
Peter
|
|
|