seismael
seismael

Reputation: 227

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 renderer 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 {

Upvotes: 1

Views: 524

Answers (1)

Eugene
Eugene

Reputation: 2216

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

Upvotes: 1

Related Questions