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

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

1. List修改datasource数据的时候出现部分数据不能被修改 [ 100%]

...ya.stage.addChild(this.mainUI); }; GameMain.prototype.onRender = function (cell, index) { if(index <0 || index >= dataSource.length) return; var data = dataSource[index]; var chBox = cell.getChildByName('chBox'); var img = cell.getChildByName('img'); if(!data.type) { chBox.skin = "../laya/asse...

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

2. List翻页效果 [ 99%]

...bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...

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

3. List翻页效果怎么实现 [ 99%]

...bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...

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

4. list只能显示一个图片 [ 98%]

...index){ console.log(index + ' selected'); } _proto.onRenderList = function(cell,index){ console.log(cell.dataSource); //如果索引不再可索引范围,则终止该函数 if(index > this.data.length)return; //获取当前渲染条目的数据 var listData = this.data[index]; console.log(listD...

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

5. laya 的list组件,如果有多页信息,怎么实现翻页丫?? [ 98%]

...bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...

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

6. 请问laya有没有类似翻页容器(pageView)的组件? [ 97%]

...bg_help_0${i}.png`) } this.list_rule.array = imgArray; } public updateItem(cell: Laya.Box, index: number): void { let img_rule = cell.getChildByName("img_rule") as Laya.Image; img_rule.skin = cell.dataSource let text_info = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes(...

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

7. List滚动条问题 [ 96%]

...st.array = that._items;updateitem代码如下: function UpdateMarketItem(cell, index) { // {id:1,name:"10金豆-测试",price:0.01,title:"10金豆-测试",desc:"测试",balance:10,gift:0,imgPath:"res\\common\\BalanceSellDlg\\xiaodou.png",hot:1,orderCount:9} cell.setGold(cell.dataSource.balance + c...

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

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

...trace("你点击的当前索引是:"+index); } private function onRender(cell:Item,index:int):void { cell.setImg(cell.dataSource.src); cell.setLabel(cell.dataSource.txt); } } } import laya.ui.Image; import laya.ui.Label; import laya.ui.View; class Item extends View { public static var WID:int=150;...

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

9. list item 添加事件后无法监听 [ 88%]

...ew Handler(this, updateItem);     return list; }  function updateItem(cell, index) {     console.log(index);     // console.log(cell.dataSource);     cell.setImg(cell.dataSource[index]);     cell.on(Laya.Event.CLICK, function() {         console.log("click")     }) }...

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

10. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 87%]

...听不到mouseHandler跟selectHandler。 需求:需要对list中的每个cell设置监听 问题:在微信小游戏中使用list,监听不到mouseHandler跟selectHandler,但是renderHandler的回调是正常的。1、我对list设置了on去监听mouse事件,可以触发回调 on 上面的...

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