Board Logo

disble nodes
syfodyas - 12/1/2005 at 04:14 PM

Hi,

Is it possible to disable nodes?


rock - 12/2/2005 at 12:01 PM

Could you clarify?


syfodyas - 12/2/2005 at 12:31 PM

A certain state of a node so it cannot be (de)selected,


rock - 12/6/2005 at 05:33 PM

You could add custom key into node's scope setting:
['My disabled node', 'link.html', {'disabled':true}, ....]

and define onItemSelect/onItemDeselect function as follownig model:

function onItemSelectHandler(o_item){
if(o_item.a_config[2] && o_item.a_config[2]['disabled']) return false; //cancel default action if 'disabled'==true
return true;
}


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/