bdboyle
Junior Member
Posts: 2
Registered: 1/26/2006
Location: USA
Member Is Offline
|
| posted on 2/4/2008 at 06:08 PM |
|
|
single click on menu to open 1st level
Maybe I'm thick...but, would like to change the response of the menu items so that a single click on the menu selection opens the page up, rather
than double click. Single click works on the '+' before it...haven't seen in the dox where it would be enabled on the text itself...
thoughts?
|
|
|
tigra
Administrator
Posts: 2043
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 2/5/2008 at 02:16 AM |
|
|
http://www.softcomplex.com/products/tigra_tree_menu_pro/docs/#api_examples
look for "Node open on single click"
|
|
|
TreeMenuUser
Junior Member
Posts: 2
Registered: 11/5/2008
Member Is Offline
|
| posted on 11/13/2008 at 03:32 PM |
|
|
I tried below function
/*
This function modifies tree behavior so nodes without link
assigned will open on single click
Function should be called AS onItemSelect handler of the tree
*/
function onItemSelectHandler (o_item) {
// if node with no link then toggle
var o_state = o_item.state();
if (o_state['node'] && !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;
}
I got an error
Error: Object doesn't support this property or method.
|
|
|
tigra
Administrator
Posts: 2043
Registered: 6/17/2002
Location: US, CO
Member Is Offline
|
| posted on 11/13/2008 at 08:39 PM |
|
|
is that with the PRO version of the script?
|
|
|
degruijterp
Junior Member
Posts: 8
Registered: 4/16/2005
Member Is Offline
|
| posted on 4/3/2009 at 01:34 PM |
|
|
Single click to open item
There is a post on how to have an item (node) opened with a click on the text in stead of the plus sign. It seems nobody ever got this to work.
Can it be done with tigra tree menu pro?
Regards,
Peter
|
|
|