大约有 16 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0032 秒)
...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
...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
...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
...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
...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
...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
...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
...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
...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
...听不到mouseHandler跟selectHandler。 需求:需要对list中的每个cell设置监听 问题:在微信小游戏中使用list,监听不到mouseHandler跟selectHandler,但是renderHandler的回调是正常的。1、我对list设置了on去监听mouse事件,可以触发回调 on 上面的...
来源: Laya_社区 发布时间: 20180731