开发者

flex tree node types

开发者 https://www.devze.com 2023-01-15 14:21 出处:网络
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

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

精彩评论

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

关注公众号