大约有 91 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0031 秒)
Laya_社区(52) Laya2.0_文档(9) Laya_示例(5) laya_api(5) Laya3.0_api(5) Laya2.0_示例(5) Laya2.0_api(5) Laya3.0_文档(5)
...enderHandler = new Handler(this, this.updateListItem); list.selectHandler = new Handler(this, this.onSelect); this.addChild(list); list.array = data; } updateListItem(cell: BagItem, index: number):void{ cons...
来源: Laya_社区 发布时间: 20170310
...); } function MyBoot() { MyBoot.super(this); this.Boot.selectHandler = new Laya.Handler(this, onSelect, null, false);//设置 tab 的选择项发生改变时执行的处理器。 console.log("A123"); function onSelect(index) { console.log("当前选...
来源: Laya_社区 发布时间: 20160722
...隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = new Handler(this, updateItem); Laya.stage.addChild(list); list.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(ce...
来源: Laya_社区 发布时间: 20170627
..._list.array = data; record_slide_list.selectEnable=true; record_slide_list.selectHandler = 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'...
来源: Laya_社区 发布时间: 20170803
...ht = 810;// this.publicSpaceList.vScrollBarSkin = ""; this.publicSpaceList.selectHandler = new Laya.Handler(this, this.onListSelect); this.publicSpaceList.renderHandler = new Laya.Handler(this, this.updateListItem); this.publicSpaceList.array = ; this.addChild( this.publicSpaceList ); public setPubl...
来源: Laya_社区 发布时间: 20170923
...dIndex值和对选中状态的显示和隐藏,派发change事件,调用selectHandler。 为什么要对List重新渲染。如果我的list里的子项内容修改了,但是selectedIndex重新渲染List,那么修改过的子项不是就变回最初的内容。那不就是不对了。 看不...
来源: Laya_社区 发布时间: 20171226
...isSelect:false}); } my_list.array=data; my_list.selectEnable=true; my_list.selectHandler=new Handler(this,onSlectHandler); my_list.renderHandler=new Handler(this,onRenderHandler); } private function onRenderHandler(cell:Box,index:int):void { var img:Image=cell.getChildByName("img")as Image; var data...
来源: Laya_社区 发布时间: 20170310
...执行一次 onAwake(): void { //点击Tab选择按钮的处理 this.tab.selectHandler = new Laya.Handler(this, this.onSelecte); } // 根据选择tab的索引切换页面 private onSelecte(index: number): void { //切换ViewStack子页面 this.viewstack.selectedIndex = index; } } 最终的效果如...
来源: Laya3.0_文档 发布时间: 20251010
...3,item4,item5"); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } function onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } })(); ```
来源: Laya2.0_文档 发布时间: 20210714
...ist.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=data; } private function onSelect(index:int):void { trace("你点击的...
来源: Laya_社区 发布时间: 20170626