给ItemRenderer传参
给ItemRenderer传递初始参数,可以根据参数灵活生成ItemRenderer内部的元素。
var renderer:ClassFactory = new ClassFactory(IconRenderer) ; renderer.properties = {icons : arrIcons} ; column.itemRenderer = renderer;
在IconRenderer 里需要icons的set方法来处理:
public function set icons(value:Object):void { _icons = value; if (_icons != null) { for each(var icon:Object in _icons) { switch(icon.name){ .......
相关推荐
Chenliaoyuan 2020-06-11
moyigg 2020-04-20
Chenliaoyuan 2020-04-14
Donven 2019-09-07
startXUEBA 2018-03-24
88971730 2011-08-18
jackiebobo 2011-04-08
ccgsteel 2019-06-30
aSuncat 2018-03-24
<div class="panel-body" style="height: 300px; width: 100%; overflow: auto;" data-platform-scroll="&q
道北吴彦祖 2017-01-15
乔乔 2016-07-20
goodyatou 2016-03-27
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="icons/apple-touch-icon-114x114-precom
道北吴彦祖 2015-09-29
Pig00 2019-06-27