大约有 15 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
let btn:Button = cell.getChildByName("button的name"); import Button = laya.ui.Button; let itemBtn:Button = cell.getChildByName("mItemBtn"); 这样会报一个错:Type "Node" is not assignable to type "Button". Property "toggle" is missing in type "Node"; 对着官网list例子做的,不知...
来源: Laya_社区 发布时间: 20180621
如何为list内部的button添加事件 2017-01-05 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: 你可以通过list.getItem(xxx).getChildByName(),通过button的name属性得到butto...
来源: Laya_社区 发布时间: 20170105
..."res/ui/dialog.png"); dialog.addChild(bgImg); // bgImg.size(400, 458); var button = new Button("res/ui/close.png"); button.size(50, 50); button.name = Dialog.CLOSE; button.pos(bgImg.width - button.width - 5, 5); dialog.addChild(button); dialog.dragArea = "0,0," + bgImg.width + "," + bgImg.height; di...
来源: Laya_社区 发布时间: 20200924
...供了三种鼠标提示package { import laya.net.Loader; import laya.ui.Button; import laya.ui.TipManager; import laya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 p...
来源: Laya_社区 发布时间: 20161115
...018-07-30 10:11 浏览: 1033 关注: 2 人 Zorana • 2018-07-31 16:34 let button = wx.createUserInfoButton({ type: 'text', text: '获取用户信息', style: { left: 10, top: 76, width: 200, height: 40, lineHeight: 40, backgroundColor: '#ff0000', color: '#ffffff', textAlign: 'center', fontSize: 16,...
来源: Laya_社区 发布时间: 20180728
...I组件的toolTip属性如何使用?赋值之后没有效果呢? 例如Button组件,通过代码给Button的toolTip属性赋值,程序运行后,鼠标悬浮不出现toolTip内容,为什么? 或者说该如何实现鼠标悬浮提示文本的效果? 2019-06-11 添加评论 免费帖 -...
来源: Laya_社区 发布时间: 20190611
...= styleObj[key]; } } } /** * 给按钮上文本样式赋值 * @param {Laya.Button} button * @param {ITextFormat} styleObj */ assignButtonFontStyle(button: Laya.Button, style: string | ITextFormat): void { let keyMap: Object = { bold: "labelBold", color: "labelColors", font: "labelFont", fontSize: "l...
来源: Laya_社区 发布时间: 20171226
两个问题都关于LayaAir的ios真机 碰到个问题,Button组件我稍微改了下,为了实现按下的时候有个变暗的效果 statenum是1的按钮, /** * 对象的 <code>Event.MOUSE_OVER、Event.MOUSE_OUT、Event.MOUSE_DOWN、Event.MOUSE_UP、Event.CLICK</code> 事件...
来源: Laya_社区 发布时间: 20160802
...认属性后就报错,LayaAirIDE_1.7.11 - 1.7.13都试了 <html type="Button" props="label=label@@!@@x=-171@@!@@y=431@@!@@stateNum=1"> <body> <parsererror style="display: block; white-space: pre; border: 2px solid #c77; padding: 0 1em 0 1em; margin: 1em; background-color: #fdd; color:...
来源: Laya_社区 发布时间: 20171130
...是其中的一部分! 1.将附件中bin/js/component文件夹中的ScaleButton.js和ScaleButton.xml文件放到下图所示的位置: 2.完成第一个步骤之后切换到文档页面,将第4个大步骤完成 3.这时组件已经能够在UI面板正常显示了,这时先不要着急导出...
来源: Laya_社区 发布时间: 20171115