3.2.0

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
June 29,
p.s. It's about a tree control.
promise
June 29,
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)
June 29,

This topic is archived.

See also:


Back to support forum