大约有 103 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0050 秒)
Laya_社区(90) Laya3.0_api(5) Laya2.0_文档(3) laya_api(1) Laya_示例(1) Laya3.0_文档(1) Laya2.0_api(1) Laya2.0_示例(1)
...加一个render函数,renderhi会自动返回当前所渲染的数据(cell:Box,index:int),然后根据你的需求将该数据获取到即可!通过cell.getChildIndex/getChildByName等方法 2017-02-10 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...
来源: Laya_社区 发布时间: 20170210
...pg"); data.push("res/1.jpg"); } rankList.array = data; function updateItem(cell, index) { cell.setImg(cell.dataSource); } 发布小游戏将code.js 发到开放域设置的目录下面改名为index.js 报错了 具体图片如下 附件 : --> 2018-04-16 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20180416
...") { //Tree的开/关,当打开一个时,另一个关闭 var item:Cell = e.target.parent as Cell; if (item.dataSource.isOpen == true) { if (this.selectedIndex == -1) { this.selectedIndex = index; } else { if (this.selectedIndex < index) { this.listUI.typeTree.setItemState(this.selectedIn...
来源: Laya_社区 发布时间: 20171011
...utton的点击事件?还是不用清除点击事件?private updateItem(cell: Laya.Box, index: number): void { let btn: Laya.Button = cell.getChildByName("btn") as Laya.Button; btn.on(Laya.Event.CLICK, this, this.on_test); } 附件 : --> list.png 2018-08-10 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20180810
你们的panel能用么?? Panel里添加了很多cell_ui,cell_ui计算了位置,超出了panel的范围,vskin也设置了,但就是不能拖动。大概是因为我添加的cellUI长宽都大大小于panel本身。 测试了ui示例里的panel,修改了image的位置和大小了,pa...
来源: Laya_社区 发布时间: 20180130
...时会停止滚动条。当通过滑动滚动条进行动态更新List的cell时,设置为true会让列表滚动的平滑流畅 二、通过代码创建List组件 在进行书写代码的时候,免不了通过代码控制UI,创建UI_List类,通过代码设定List相关的属性。 示例代...
来源: Laya3.0_文档 发布时间: 20251010
...list.selectEnable = false; list.renderHandler = new Handler(this, function(cell, index) { cell.setImg(cell.dataSource); }); this.roombg.addChild(list); var data = []; for (var i = 0; i < 1; ++i) { data.push("11"); } list.array = data; } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20170920
...his.Gbox_list.setVirtual(); 其次对于virtual list, 相当于在复用cell, 逻辑上100行的,实际上是在反反复复就重复用那几个. 因此你 on(xxx....) 这种语法,如果滚动后发生cell复用,相当于在重复注册事件. 在refresh data后,你也相当于在重...
来源: Laya_社区 发布时间: 20251021
...mp.atlas", Laya.Handler.create(null, onLoaded)); }*/ function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onLoaded(): void { var rankList = new Laya.List(); //rankList.scrollBar.elasticBackTime = 200; //rankList.scrollBar.elasticBackTime = 200;//...
来源: Laya_社区 发布时间: 20180507
...:List, evt:Event, index:int):void { var cell:Box = cardList.getCell(index); if(cell){ if(evt.type == Event.CLICK){ // refreshCard(0,MyHomeModel.intance.tempArr1); /...
来源: Laya_社区 发布时间: 20170310