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

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

31. 关于list空间的问题 [ 68%]

...ns/2.jpg"); } this._ui.serverList.vScrollBarSkin = ""; this._ui.serverList.selectHandler = new Handler(this, this.onSelect); this._ui.serverList.renderHandler = new Handler(this, this.onUpdateItem); //this._ui.serverList.array = this._loadData.list; this._ui.serverList.array = data;   附件 : --> ...

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

32. 怎么循环添加点击事件? [ 68%]

...g 赞同来自: 好友列表建议你用list来做,list有mouseHandler和selectHandler,可以直接回调你点击每一条Item的信息! 2017-07-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 18336093936 相关问题 Dialog:...

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

33. 为什么list不能滑动,怎么让list滑动 [ 66%]

...皮筋极限距离。  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

34. list的render复用问题 [ 65%]

...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

35. 如何为list内部的button添加事件 [ 65%]

...: 3 人 cuixueying • 2017-01-05 22:10 你可以在renderHandler下或者selectHandler下,通过返回值index索引,去为你的button添加点击事件即可,不需要遍历。 weiyongwill • 2017-01-06 10:56 多谢指点。list.getItem(xxx).getChildByName()无效,获取不到,我发...

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

36. 对象的监听事件 [ 64%]

...不会生效。 请问:为什么会出现这种情况。list里面原有selectHandler的事件的,这个事件则有效,鼠标点击事件则无效 2018-05-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 L...

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

37. list方法onSelect失效 [ 64%]

...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

38. list中加的button不能接收点击事件 求一个list中加button的demo [ 64%]

...enderHandler = new Handler(this, this.updateListItem);         list.selectHandler = new Handler(this, this.onSelect);                 this.addChild(list);         list.array = data;       }     updateListItem(cell: BagItem, index: number):void{         cons...

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

39. 有个问题想不明白,请教一下。为什么List的selectedIndex要对List进行重新渲染 [ 64%]

...dIndex值和对选中状态的显示和隐藏,派发change事件,调用selectHandler。 为什么要对List重新渲染。如果我的list里的子项内容修改了,但是selectedIndex重新渲染List,那么修改过的子项不是就变回最初的内容。那不就是不对了。 而且...

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

40. list 加载动画为什么实现的效果会错乱掉? [ 63%]

...隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stage.addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(ce...

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