大约有 91 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0029 秒)
Laya_社区(52) Laya2.0_文档(9) Laya_示例(5) laya_api(5) Laya3.0_api(5) Laya2.0_示例(5) Laya2.0_api(5) Laya3.0_文档(5)
... 当list 的 item只有一个项,(repeatX =1 repeatY=1)的时候 selectHandler 只会触发一次,重置也无效,求解 2018-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 170*****650...
来源: Laya_社区 发布时间: 20180329
...hild(UI); } function MyBoot() { MyBoot.super(this); this.MyTab.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。 console.log("A123"); function onSelect(index) { console.log("当前选...
来源: Laya_社区 发布时间: 20160722
...源加载用Handler.create()? 我测试了一下,如果类似于 tab.selectHandler = Laya.Handler.create(tab, this.onSelect); 这种的,如果用create则只能触发一下,如果用new Handler则正常触发? 2017-08-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相...
来源: Laya_社区 发布时间: 20170818
...皮筋极限距离。 this.gradeList.selectEnable = true; this.gradeList.selectHandler = new Laya.Handler(this, this.onSelect) this.gradeList.renderHandler = new Laya.Handler(this, this.updateItem) } 2019-05-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20190515
...4个render为item0,1,2,3,往下拖第五个item也叫item0, 通过list.selectHandler = new Laya.Handler(this, this._OnSelect); function _OnSelect(){ //选中的render上加个选中框, var selection = this.visualizeList.selection; selection.addChild(this.m_CenterDiv.imgSelect)...
来源: Laya_社区 发布时间: 20171101
...: 3 人 cuixueying • 2017-01-05 22:10 你可以在renderHandler下或者selectHandler下,通过返回值index索引,去为你的button添加点击事件即可,不需要遍历。 weiyongwill • 2017-01-06 10:56 多谢指点。list.getItem(xxx).getChildByName()无效,获取不到,我发...
来源: Laya_社区 发布时间: 20170105
...需要调一下initItems() tab.addChild(btn); } tab.selectedIndex=2; tab.selectHandler=new Handler(this,onSelect); } private function onSelect(index:int):void { trace("你点击的当前索引是:"+index); } } } 2017-06-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170626
...mgList.renderHandler = new Laya.Handler(this, this.onRender); this.imgList.selectHandler = new Laya.Handler(this, this.onSelect); } onSelect(index) { this.reqImage.skin = listArr[index].img.skin; if (defaultImgs[this.reqImage.skin]) { this.reqImage["guid"] = defaultImgs[this.reqImage.skin]; } this.i...
来源: Laya_社区 发布时间: 20190318
...dIndex值和对选中状态的显示和隐藏,派发change事件,调用selectHandler。 为什么要对List重新渲染。如果我的list里的子项内容修改了,但是selectedIndex重新渲染List,那么修改过的子项不是就变回最初的内容。那不就是不对了。 而且...
来源: Laya_社区 发布时间: 20171018
...慢摸索,总结下list:创建好item项,其所有ui都是基于name;selectHandler只有在index改变了才会触发,当你使用同一个list,仅刷新内容时,用mouseHandler;你可以使用,自定义数据结构来填充list.array,会相当方便;填充item时,不需要所...
来源: Laya_社区 发布时间: 20180407