我在我的 wordpress 博客和列出钛移动应用程序中获得 5 个类别数据
这是我的正常表视图屏幕 http://i.hizliresim.com/EqR4l8.png
这里我添加了 row.backgroundImage 屏幕 http://i.hizliresim.com/VLM12r.png
我的类别 .JS
$.init = function() {
var rows = [];
getCategories(function(_data) {
for (var x = 0; x < _data.length; x++) {
rows.push(Alloy.createController('category-item', {
data : _data[x]
}).getView());
}
$.categories_table.setData(rows);
APP.Loading.hide();
});
这是我的categries-items.js
$.c_title.text = args.data.name ;
$.c_counts.text = args.data.count ;
$.row.Item = args.data;
$.row.backgroundImage = 'durum.png';