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

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

161. list点击label保留一种状态 [ 50%]

...ndler = new Handler(this, onSelect,[record_slide_list]); record_slide_list.renderHandler = new Handler(this, onRender); function onRender(item,index){ var dataIndex = data[index]; var label = item.getChildByName('lab'); if(dataIndex.type == false){ label.bgColor = '#f3d9b4'; }else { label.bgColor = ...

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

162. Image.loadImage 方法加载问题 [ 50%]

...tHandler = new Laya.Handler(this, this.onListSelect); this.publicSpaceList.renderHandler = new Laya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPublicSpacesData (_publicSpacesInfo:any) : void ///调用这个方 传入参数 里...

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

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

...); this._furnitureList.itemRender = FurnitureItemCell; this._furnitureList.renderHandler = Handler.create(this, this.__renderFurnitureItem, null, false); this._furnitureList.repeatX = 5; this._furnitureList.repeatY = 3; this._furnitureList.vScrollBarSkin = ""; this._furnitureList.array = [...

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

164. 列表嵌套另外一个列表 [ 48%]

...么找里面的那个list w1114367261 • 2018-05-23 11:57 this.storelist.renderHandler=new Handler(this,onRender);//当list刷新时触发 并发送Box,index this.storelist.mouseHandler = new Handler(this,onMouse);//当list被点击时触发 并发送event,index } public function onRender(cell:Bo...

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

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

...ht-Item.HEI*list.repeatY)/2); list.vScrollBarSkin="comp/vscroll.png"; list.renderHandler=new Handler(this,onRender); list.selectEnable=true; list.selectHandler=new Handler(this,onSelect); var data:Array=; for(var i:int=0;i<100;i++) { data.push({src:"comp/bg.png",txt:"索引:"+i}); } list.array=...

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

166. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 47%]

...list的显示 this.list.array = arr; //给list添加渲染函数 this.list.renderHandler = new Handler(this, onListRender); } //通过渲染函数为Btn添加Click function onListRender(item, index) { var btn=item.getChildByName('btn'); btn.on(Event.CLICK,this,onClickBtn,[index]); } Laya.class(TestU...

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

167. laya.ui.Tree [ 47%]

...轴心点会影响对象位置,缩放中心,旋转中心。Sprite  renderHandler : Handler Tree 实例的渲染处理器。 Tree right : Number 从组件右边到其内容区域右边之间的水平距离(以像素为单位)。 Component rotation : Number旋转角度,默认值为0。...

来源: laya_api 发布时间: 20170929

168. laya.ui.Tree [ 46%]

...轴心点会影响对象位置,缩放中心,旋转中心。Sprite  renderHandler : Handler Tree 实例的渲染处理器。 Tree right : Number 从组件右边到其内容区域右边之间的水平距离(以像素为单位)。 UIComponent rotation : Number旋转角度,默认值为0。...

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

169. List 组件做的手风琴Demo [ 46%]

...addChild(list);         list.array =this.arr;         list.renderHandler =new Laya.Handler(this,this.updateItem);         this.listArr.push(list); //------------------------------------------------------------------------------ updateItem(cell:Item,index:number){       ...

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

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

...BalanceMarketDlg.width-312*3-10*2)/2, 120); list.selectEnable = true; list.renderHandler = new Laya.Handler(this, UpdateMarketItem); Laya.stage.addChild(list); list.array = that._items;updateitem代码如下: function UpdateMarketItem(cell, index) { // {id:1,name:"10金豆-测试",price:0.01,title...

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