【发布时间】:2017-01-17 13:16:02
【问题描述】:
是否可以在自定义组件中获取子级?
<myCustomComponent>
<Label #id1 text="ID 1"></Label>
<Label #id2 text="ID 2"></Label>
</myCustomComponent>
有没有办法获取这两个 Lable 的引用,以便将它们定位在我的自定义组件中的 GridLayout 中?
【问题讨论】:
标签: nativescript