大约有 5 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0015 秒)
...Child(comboBox); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, this.onSelect, [comboBox]); return comboBox; } onSelect(cb) { console.log("选中了: " + cb.selectedLabel); } } new UI_ComboBox();module laya { import Stage = Laya.Stage; import ComboBox =...
来源: Laya2.0_示例 发布时间: 20251209
... = "0,0,0,0"; tab.selectedIndex = 1; this.onSelect(tab.selectedIndex); tab.selectHandler = new Handler(this, this.onSelect); Laya.stage.addChild(tab); return tab; } onSelect(index) { console.log("当前选择的标签页索引为 " + index); } } new UI_Tab();module laya { import Stage = Laya.Stage; ...
来源: Laya2.0_示例 发布时间: 20251209
..."; rg.labelSize = 20; rg.labelBold = true; rg.labelPadding = "5,0,0,5"; rg.selectHandler = new Handler(this, this.onSelectChange); Laya.stage.addChild(rg); return rg; } private onSelectChange(index: number): void { console.log("你选择了第 " + (index + 1) + " 项"); } } } new laya.UI_RadioGroup(...
来源: Laya2.0_示例 发布时间: 20251209
...隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, this.onSelect); list.renderHandler = new Handler(this, this.updateItem); // 设置数据项为对应图片的路径 let data = []; for (let i = 0; i = []; for (var i: number = 0; i < 10; ++i) {...
来源: Laya2.0_示例 发布时间: 20251209
...rollBarSkin = ''; easeFunctionsList.selectEnable = true; easeFunctionsList.selectHandler = new Handler(this, this.onEaseFunctionChange, [easeFunctionsList]); easeFunctionsList.renderHandler = new Handler(this, this.renderList); Laya.stage.addChild(easeFunctionsList); let data = []; data.push('backIn...
来源: Laya2.0_示例 发布时间: 20251209