大约有 53 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
...面板中拖拽3、UI组件基类属性3.1 相对布局layout3.2 数据源dataSource3.3 变灰与禁用鼠标事件UI组件基础使用与构成 Author: Charley UI 组件是经典 UI 系统的核心构成,封装了大量常用且实用的界面功能,便于开发者高效构建各类用户界面...
来源: Laya3.0_文档 发布时间: 20251010
...i+'tong.jpg'}}; this.data.push(item); } console.log(this.data); this.list1.dataSource = this.data; this.list1.x = 50; this.list1.y = 500; this.list1.getChildAt(0).height = 100; this.list1.vScrollBarSkin = ""; this.list1.hScrollBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler...
来源: Laya_社区 发布时间: 20170914
...tem(cell, index) { console.log(index); // console.log(cell.dataSource); cell.setImg(cell.dataSource[index]); cell.on(Laya.Event.CLICK, function() { console.log("click") }) } function onSelect(index) { console.log("当前选择的索...
来源: Laya_社区 发布时间: 20180724
...lor blendMode bottom cacheAs centerX centerY components customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numC...
来源: Laya3.0_api 发布时间: 20231115
...} list.array = data; } function updateItem(cell, index) { cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); } })(); ```
来源: Laya2.0_文档 发布时间: 20210714
...; } private updateItem(cell: Item, index: number): void { cell.setImg(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public st...
来源: Laya2.0_文档 发布时间: 20210715
...开启自定义渲染,才能使用customRender函数渲染。 Sprite dataSource : *[override] 数据赋值,通过对UI赋值来控制UI显示逻辑。 简单赋值会更改组件的默认属性,使用大括号可以指定组件的任意属性进行赋值。 Box destroyed : Boolean = false[...
来源: Laya2.0_api 发布时间: 20190513
...x:int):void { //用获得的数据给图片更换皮肤 cell.img.skin=cell.dataSource; } /***选择单元格回调***/ private function onSelect(index:int):void { trace("当前选择的索引:" + index); } } } //单元格类,继承于Box import laya.ui.Box; import laya.ui.Image; class Item exten...
来源: Laya2.0_文档 发布时间: 20210715
...ist.getItem(xxx).getChildByName()无效,获取不到,我发现只要是DataSource里面没有定义的参数用list.getItem(xxx)都获取不到,list.getItem(xxx)就是list.datasource[xxx]吧? weiyongwill • 2017-01-06 11:21 "this.sList.getItem(...).getChildByName is not a function"...
来源: Laya_社区 发布时间: 20170105
...开启自定义渲染,才能使用customRender函数渲染。 Sprite dataSource : *[override] 数据赋值,通过对UI赋值来控制UI显示逻辑。 简单赋值会更改组件的默认属性,使用大括号可以指定组件的任意属性进行赋值。 List destroyed : Boolean[只读]...
来源: laya_api 发布时间: 20170929