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

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

21. 如何扩展一个自定义的与List相似的组件呢? [ 75%]

...展一个自定义的与List相似的组件呢?也就是需要能通过dataSource实现VBox中的name=render的UI进行遍历渲染,dataSource是数组对象 2017-04-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个...

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

22. list控件内字体大小设置无效 [ 74%]

...itemName:Label=cell.getChildByName("itemName") as Label; itemImg.skin=cell.dataSource.image_url; itemName.width=Number(itemName.text.length*20); itemName.height=20; itemName.fontSize =12; itemName.text=cell.dataSource.cat_name; }fontSize设置无效。  字体等其余的都是默认设置  没有...

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

23. dialog里面的内容怎么不能添加到舞台 [ 73%]

...++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dataSource); console.log(self.foodList._array[0].food); //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addC...

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

24. 如何为list内部的button添加事件 [ 71%]

...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&quot...

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

25. IDE-显示IDE创建的界面 [ 70%]

...个属性,比如:label:{color:"#ff0000",text:"Hello LayaAir"} this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; //list赋值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test =...

来源: Laya_示例 发布时间: 20251130

26. IDE-显示IDE创建的界面 [ 70%]

...个属性,比如:label:{color:"#ff0000",text:"Hello LayaAir"} this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; //list赋值,先获得一个数据源数组 var arr = []; for (var i = 0; i /// import test =...

来源: Laya2.0_示例 发布时间: 20200319

27. laya.ui.ScaleBox_API3.0 [ 68%]

...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

28. list 加载动画为什么实现的效果会错乱掉? [ 68%]

...ist.array = effList; } function updateItem(cell, index) { console.log(cell.dataSource); cell.setImg(cell.dataSource); } function onSelect(index) { console.log("当前选择的索引:" + index); }     我想实现的效果是   设置每个特效宽高都为80 * 80   然后一排显示3个 界...

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

29. laya.ui.Panel_API3.0 [ 68%]

...dMode bottom cacheAs centerX centerY components content customRenderEnable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize elasticEnabled filters globalRotation globalScaleX globalScaleY graphics gray hScrollBar hScrollBarSkin height hideFlags hitArea is3D ...

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

30. laya.ui.LayoutBox_API3.0 [ 68%]

...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