mx.core.Repeater 类是对应于 <mx:Repeater> 标签的运行时对象。它根据其 dataProvider 创建其子组件的多个实例。重复的组件可以是任意标准或自定义控件或容器。
您可以在允许使用控件或容器标签(<mx:Application> 容器标签除外)的任何位置使用 <mx:Repeater> 标签。要重复用户界面组件,您需要将其标签放在 <mx:Repeater> 标签中。您可以在 MXML 文档中使用多个 <mx:Repeater> 标签。还可以嵌套 <mx:Repeater> 标签。
不能对不扩展 UIComponent 类的对象使用 <mx:Repeater> 标签。
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
viewSourceURL="src/RepeaterStatic/index.html"
width="275" height="200"
>
<mx:Script>
<![CDATA[
[Bindable]
public var myArray:Array=[1,2,3,4];
]]>
</mx:Script>
<mx:Panel
title="Repeater: emulating a for loop"
paddingBottom="10" paddingLeft="10" paddingRight="10" paddingTop="10"
>
<mx:Repeater id="myRep" dataProvider="{myArray}">
<mx:Label
id="myLabel"
text="This is loop #{myRep.currentIndex}"
/>
</mx:Repeater>
</mx:Panel>
</mx:Application>
分享到:
相关推荐
repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater嵌套repeater...
Repeater表头自定义排序; Repeater嵌套Repeater。
Repeater 分页 Repeater 分页 Repeater 分页
<asp:Repeater ID="rptUser" runat="server" onitemcommand="rptUser_ItemCommand"> <tr><td colspan="3" align="center">用户信息</td></tr> 用户编号 用户姓名 用户密码 操作 (this)"/> ...
关于repeater的使用,包含分页,删除行。熟练使用
repeater的编辑和删除,以及repeater的嵌套使用
repeater控件使用实例
关于repeater嵌套的方法,使用!! 希望对大家有帮助!!!!
自定义控件之万能Repeater源码 为什么要用Repeater,因为Repeater的性能最好,扩展性最强。 为什么现在用Repeater的人越来越少,因为其可操作性相对较差。 那么,如果我只需拖动一个Repeater 然后给他一个数据源 就...
资源包含:数据库设计、完整实例代码! 主、从表显示 有问题请与QQ:24394180联系
html repeater操作 <asp:Repeater id="repeater" onitemcommand="repeater_itemcommand"> <table>
Repeater实现RadioButton单选功能
Repeater嵌套方法,.net在页面里Repeater控件内嵌套Repeater控件
This is my Linux port of Ultravnc repeater source code. Compile with command: Make You should now have a repeater file, start it with command ./repeater [inifilepathandname] Various settings can be ...
服务器控件Repeater的使用 Repeater
Repeater数据显示及分页 Repeater数据显示及分页 Repeater数据显示及分页
repeater控件显示日期
repeater嵌套 C#.Net实例代码
c# repeater 锁表头 一、将表头与内容分离。 此方法的思路其实很简单,就是将表头放在一个表格中,将表单内容repeater放在一个DIV中 ,再将DIV的样式高度设为定值,并将此div设置为允许出现纵向滚动条。这种方法...
repeater动态首尾相接显示图片,repeater读取数据库内容,绑定显示图片和标题,点击可跳转到详细页