:: Forum >>

leaf node or not?

Hi everyone,

Does anyone knows how to decide if the selected node is as leaf node or not?

thanks a lot!

Promise
20090629
promise
Monday, June 29, 2009
p.s. It's about a tree control.
promise
Monday, June 29, 2009
You can check the 'count' property of the parent 'view' model -

this.getViewProperty("count") ? "folder" : "leaf";

for example, this is how tree item assigns folder/leaf icon -

obj.setClass("tree", function(){
return this.getViewProperty("count") ? "folder" : "leaf";
});
Alex (ActiveWidgets)
Monday, June 29, 2009

This topic is archived.


Back to support forum

Forum search