• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 23 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0020 秒)

21. list里面可以加入多个view吗? [ 62%]

...ht-Item.HEI*list.repeatY)/2); list.vScrollBarSkin="comp/vscroll.png"; list.renderHandler=new Handler(this,onRender); list.selectEnable=true; list.selectHandler=new Handler(this,onSelect); var data:Array=; for(var i:int=0;i<100;i++) { data.push({src:"comp/bg.png",txt:"索引:"+i}); } list.array=...

来源: Laya_社区 发布时间: 20170626

22. 列表嵌套另外一个列表 [ 62%]

...么找里面的那个list w1114367261 • 2018-05-23 11:57 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function onRender(cell:Bo...

来源: Laya_社区 发布时间: 20180522

23. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 58%]

...list的显示 this.list.array = arr; //给list添加渲染函数 this.list.renderHandler = new Handler(this, onListRender); } //通过渲染函数为Btn添加Click function onListRender(item, index) { var btn=item.getChildByName('btn'); btn.on(Event.CLICK,this,onClickBtn,[index]); } Laya.class(TestU...

来源: Laya_社区 发布时间: 20170513