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

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

1. list下面的box的disable设置无效 [ 100%]

...容相关的链接 提交 4 个回复 WLN123 赞同来自: this.renderNode.getCell(i).disabled = true; 这句代码不知道哪里出错了 2018-01-15 0 0 分享 微博 QZONE 微信 WLN123 赞同来自: 求助 2018-01-16 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 建议你先...

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

2. 请问下怎么用代码调整List列表里的box大小 [ 93%]

...18-04-25 0 1 分享 微博 QZONE 微信 Todo 赞同来自: 我用this.list.getCell(index).heght 设置发现没有效果哎 2018-04-26 0 0 分享 微博 QZONE 微信 佑安 赞同来自: 请问楼主。这个问题你现在解决了吗,我遇到了和你一样的问题,想问下你解决方法 2...

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

3. list点击label保留一种状态 [ 91%]

...unction onClickBtn(index){ for(var q = 0;q < 10;q++){ record_slide_list.getCell(q).getChildByName('lab').bgColor = '#f3d9b4'; } record_slide_list.getCell(index).getChildByName('lab').bgColor = 'red'; } 这样做可以实现,但是滑动滚动条在点击的话报错了 LayaSample.js:88 Uncaught...

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

4. 如何获取list下单元格的坐标点? [ 90%]

...Click(e:Event,index:int):void { if(e.type==Event.CLICK) { trace("xy:"+list.getCell(index).x,list.getCell(index).y); } }上面的坐标是相对于list本身的,如果你想取得全局坐标可以通过localToGlobal方法来得到。 2016-12-15 1 1 分享 微博 QZONE 微信 my26929 赞同来自: ...

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

5. list 数据不会及时渲染 [ 77%]

...dex:int):void         {             var cell:Box = cardList.getCell(index);             if(cell){                 if(evt.type == Event.CLICK){                      //            refreshCard(0,MyHomeModel.intance.tempArr1); //           ...

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

6. list 添加引发问题,求助! [ 76%]

...不知道什么原因 170*****650 • 2017-08-23 15:35 还是对setItem和getCell两种方式理解不够深 导致的

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

7. 点击list的时候触发的e.target永远是被点击的item? [ 75%]

...,index:int):void { // TODO Auto Generated method stub var cell:Box=my_list.getCell(index) as Box; var my_btn:Button=cell.getChildByName("my_btn") as Button; var my_clip:Clip=cell.getChildByName("my_clip") as Clip; my_btn.on(Event.CLICK,this,onBtnClick,["my_btn"]); my_clip.on(Event.CLICK,this,onClipC...

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

8. list和cell如何联系 [ 72%]

...想做什么操作呢,cell好比是list的子级,你可以通过listgetCell或者getItem等方法获取制定的cell对象,也可以通过cell对象的getChildByName等方法获取cell的子级组件,不仅仅是renderHandler和itemRender跟list和cell有关联,你也可以自己直接...

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

9. list组件里面使用box作为渲染项,在渲染项里面再嵌套一个box,这里面的数据该怎么渲染呢 [ 67%]

... 2018-07-30 11:51 不是,都是ide设置好的,我解决了,是通过getcell再获取name值来得到的,不过需要设置repeaty的值。你说的通过var我始终不知道该获取到什么,直接也获取不到子类的var,api也没看到什么方法可以得到var值? Laya_Aaron ...

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

10. laya.ui.List_API3.0 [ 48%]

...oTexture3D event frameLoop frameOnce freshLayout fromParentPoint getBounds getCell getChildAt getChildByName getChildIndex getComponent getComponents getGraphicBounds getItem getMousePoint getRepaint getSelfBounds get_anchorX get_anchorY get_bottom get_dataSource get_height get_scaleX get_scaleY get...

来源: Laya3.0_api 发布时间: 20231115