大约有 9 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0037 秒)
let btn:Button = cell.getChildByName("button的name"); import Button = laya.ui.Button; let itemBtn:Button = cell.getChildByName("mItemBtn"); 这样会报一个错:Type "Node" is not assignable to type "Button". Property "toggle" is missing in type "Node"; 对着官网list例子做的,不知...
来源: Laya_社区 发布时间: 20180621
...e.log(this.ui.List.localToGlobal(new Laya.Point(0, 0)));我想获取List下cell的坐标, 但是不管怎么拖动, 打印出来的数值都是一样的,不知道是使用错误还是哪里设置错误 2017-03-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...
来源: Laya_社区 发布时间: 20170329
...erHandler = new Handler(this, onRender); function onRender(cell,index){ //如果索引不再可索引范围,则终止该函数 if(index > json.length)return; //获取当前渲染条目的数据 ...
来源: Laya_社区 发布时间: 20180717
...s.updateList); ActivityXXXXXUI.prototype.updateList = function(cell, index) { var info = cell.dataSource; var img_icon = cell.getChildByName("img_icon");//图标 var lab_name = cell.getChildByName("lab_name");//名称 } itemHandler一...
来源: Laya_社区 发布时间: 20170808
...听不到mouseHandler跟selectHandler。 需求:需要对list中的每个cell设置监听 问题:在微信小游戏中使用list,监听不到mouseHandler跟selectHandler,但是renderHandler的回调是正常的。1、我对list设置了on去监听mouse事件,可以触发回调 on 上面的...
来源: Laya_社区 发布时间: 20180731
...") { //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
...且list内无动画,设置此属性为true能大大提高性能 List cells : Vector.<Box>[read-only] 单元格集合。 List centerX : Number 在父容器中,此对象的水平方向中轴线与父容器的水平方向中心线的距离(以像素为单位)。 UIComponent centerY :...
来源: Laya2.0_api 发布时间: 20190513
...且list内无动画,设置此属性为true能大大提高性能 List cells : Vector.<Box>[read-only] 单元格集合。 List centerX : Number 在父容器中,此对象的水平方向中轴线与父容器的水平方向中心线的距离(以像素为单位)。 Component centerY : N...
来源: laya_api 发布时间: 20170929
...veInHierarchy alpha anchorX anchorY array bgColor blendMode bottom cacheAs cells centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize elasticEnabled filters globalRotation globalScaleX globalScaleY graphics g...
来源: Laya3.0_api 发布时间: 20231115