【发布时间】:2016-06-15 10:26:30
【问题描述】:
我正在 appcelerator studio 中构建一个简单的应用程序。 所以我想在我的视图中显示一个 TableView。
这是 socialHistory.xml
<Alloy>
<View class="container">
<TableView id="table">
<TableViewSection id="table" >
<TableViewRow title="Apple"/>
<TableViewRow title="Bananas"/>
</TableViewSection>
</TableView>
</View>
</Alloy>
这是 socialHistory.js
var args = $.args;
//header table
var tableData = [
{title: "Pippo"},
{title: "Pluto"},
{title: "Paperino"},
{title: "Balto"}
];
$.table.headerTitle=tableData;
但如果我尝试执行我的代码,我无法看到我的表格的标题
【问题讨论】:
标签: tableview appcelerator appcelerator-alloy