道北吴彦祖 2011-08-18
给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){ .......
<div class="panel-body" style="height: 300px; width: 100%; overflow: auto;" data-platform-scroll="&q
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="icons/apple-touch-icon-114x114-precom