大约有 91 项符合查询结果, 库内数据总量为 30,964 项。 (搜索耗时: 0.0038 秒)
Laya_社区(65) Laya2.0_文档(6) laya_api(4) Laya2.0_示例(4) Laya2.0_api(4) Laya3.0_api(3) Laya_示例(3) Laya3.0_文档(2)
...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
...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
...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
...} 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
...件检测依据。 Stage对象和UI的View组件默认为true。 Sprite itemRender : * 此对象包含的List实例的单元格渲染器。 取值: 单元格类对象。 UI 的 JSON 描述。 Tree keepStatus : Boolean 数据源发生变化后,是否保持之前打开状态,默认为true...
来源: laya_api 发布时间: 20170929
...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
...件检测依据。 Stage对象和UI的View组件默认为true。 Sprite itemRender : * 此对象包含的List实例的单元格渲染器。 取值: 单元格类对象。 UI 的 JSON 描述。 Tree keepStatus : Boolean 数据源发生变化后,是否保持之前打开状态,默认为true...
来源: Laya2.0_api 发布时间: 20190513
...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
..._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
...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