开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜