0
我想知道是否有可能在Appcelerator合金的集合中包含嵌套模型?集合嵌套模型TableView(Appcelerator合金)
我有一个帖子列表,每个帖子都嵌套了评论和喜欢的模型。我该如何去做呢?
这里是我的代码:
<Alloy>
<Collection src="post">
<Window>
<TableView id="table" dataCollection="post">
<TableViewRow class="row">
<Label text="{title}></Label>
****How Do I load list of comments and likes within the collection?****
****{comments}****
****{likes}*****
</TableViewRow>
</TableView>
</Window>
</Alloy>