2013-09-24 1 views

답변

2

한 가지 방법이 셀의 배경 색상을 변경하려면 데이터있어서

http://blog.flexdevelopers.com/2009/06/flex-examples-item-renderers-in.html

: 여기

override public function set data(value:Object):void { 
      super.data = value; 
      // retrieve the value of the list-based control's new public property 
      var minAge:Number = (listData.owner as MyList).minAge; 
      if (data.age < minAge) { 
       listLabel.setStyle("color",0xFF0000); 
      } else { 
       listLabel.setStyle("color",0x000000); 
      } 
     } 

좋은 예이다 링크

관련 문제