flex tree node types
i have a tree of nodes that i dont want some type of nodes to appear in the tree, i can check the data on tree item r开发者_开发百科enderer for each specific node type, so i have one type that i dont want it to be shown as tree node, like it doesn't exist.
if(this.data.type == TypeEnum.id){
this.visible=false;
this.height = 0;
}
else {
how about something like this:
public function init(e:Event):void{
if(this.data.bad==true){
this.visible=false;
this.height=0;
this.width=0;
}
}
or just add some filter
function like here
精彩评论