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

大约有 91 项符合查询结果, 库内数据总量为 30,964 项。 (搜索耗时: 0.0038 秒)

61. 如何实现点击列表时,点击item中的按钮有事件,点击item其他位置没有事件,目前只能实现点击list里的item组件进行事件监听,没办法实现监听item中的button [ 49%]

...de里自己设定的) button.on(事件注册) }   方法二: list组件.itemRender  = UI页面 function renderHandler(item:UI页面,index:int):void { item.setEvent() //添加事件 不能在UI页面初始化函数里添加  }   UI页面里单独为button注册事件即可 2017-11-28 0 1 分享...

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

62. list图片路径没问题.为什么图片就是不显示.啊啊啊也,求解答 [ 49%]

...e _initView():void { this._furnitureList = new List(); this._furnitureList.itemRender = FurnitureItemCell; this._furnitureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false); this._furnitureList.repeatX = 5; this._furnitureList.repeatY = 3; this._furnitureList.vScrollB...

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

63. list里面可以加入多个view吗? [ 48%]

...unction onLoaded():void { list=new List(); Laya.stage.addChild(list); list.itemRender=Item; list.repeatX=1; list.repeatY=6; list.x=((Laya.stage.width-Item.WID)/2); list.y=((Laya.stage.height-Item.HEI*list.repeatY)/2); list.vScrollBarSkin="comp/vscroll.png"; list.renderHandler=new Handler(this,onRend...

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

64. List组件拖动浏览时item会出现重叠的现象 [ 48%]

...} public setUp():void { var list: List = new List(); // 渲染的item list.itemRender = ListDataSourceItem; // 设置行列显示的item个数 list.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = (Laya.stage.height - ListDataSourc...

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

65. laya.ui.Tree [ 47%]

...件检测依据。 Stage对象和UI的View组件默认为true。 Sprite  itemRender : * 此对象包含的List实例的单元格渲染器。 取值: 单元格类对象。 UI 的 JSON 描述。 Tree  keepStatus : Boolean 数据源发生变化后,是否保持之前打开状态,默认为true...

来源: laya_api 发布时间: 20170929

66. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 47%]

...8";   setup(); })();   function setup() { var list = new List();   list.itemRender = Item;   list.repeatX = 1; list.repeatY = 4;   list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2;   // 使用但隐藏滚动条 list.vScrollBarSkin = "";   list.selec...

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

67. laya.ui.Tree [ 47%]

...件检测依据。 Stage对象和UI的View组件默认为true。 Sprite  itemRender : * 此对象包含的List实例的单元格渲染器。 取值: 单元格类对象。 UI 的 JSON 描述。 Tree  keepStatus : Boolean 数据源发生变化后,是否保持之前打开状态,默认为true...

来源: Laya2.0_api 发布时间: 20190513

68. List 组件做的手风琴Demo [ 47%]

...tX =1;         list.repeatY =this.arr.length;         list.itemRender =Item; //Item 为继承BOX类         list.vScrollBarSkin ="";         Laya.stage.addChild(list);         list.array =this.arr;         list.renderHandler =new Laya.Handler(this,this...

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

69. List滚动条问题 [ 46%]

..._super); })(Laya.Box);list代码如下: var list = new Laya.List(); list.itemRender = xgame.marketitem; list.repeatX = 3; list.repeatY = 1; list.spaceX = 10; list.hScrollBarSkin = ""; //list.vScrollBarSkin = ""; list.pos((BalanceMarketDlg.width-312*3-10*2)/2, 120); list.selectEnable = true; list.r...

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

70. 微信小游戏关系链 我创建了一个开放域的项目 但是报错了 [ 46%]

...kListItem", Laya.Box); //rankList var rankList = new Laya.List(); rankList.itemRender = RankListItem; rankList.repeatX = 1; rankList.repeatY = 4; // 使用但隐藏滚动条 rankList.vScrollBarSkin = ""; // rankList.selectEnable = true; // rankList.selectHandler = new Laya.Handler(this, onSelect); r...

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