flex学习日记(三) 使用“项呈示器”ItemRenderer
发布时间:2020-12-15 01:00:48 所属栏目:百科 来源:网络整理
导读:1.主页面 ?xml version="1.0" encoding="utf-8"?s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"fx:Declarationss:ArrayL
1.主页面<?xml version="1.0" encoding="utf-8"?> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"> <fx:Declarations> <s:ArrayList id="employeeList"> <fx:Object firstName="Samuel" lastName="Ang" imageFile="images/sang.jpg"/> <fx:Object firstName="Athena" lastName="Parker" imageFile="images/aparker.jpg"/> <fx:Object firstName="Saul" lastName="Tucker" imageFile="images/stucker.jpg"/> <fx:Object firstName="Alyssa" lastName="Le" imageFile="images/ale.jpg"/> </s:ArrayList> </fx:Declarations> <s:DataGroup dataProvider="{employeeList}" itemRenderer="components.Employee_ItemRenderer"> <s:layout> <s:VerticalLayout paddingLeft="25" paddingTop="25" /> </s:layout> </s:DataGroup> </s:Application>
|
推荐文章
站长推荐
热点阅读