我想删除程序元素的内联样式并将样式全部保留在 tss 类中。现在我必须做这样的事情:
var featureRow = Ti.UI.createView({layout: 'vertical'});
//For context: I add various images/labels inside before appending the view
var featureImage = Ti.UI.createImageView({ image: param+".png" });
featureRow.add(featureImage);
...
$.featureTable.add(row);
我希望能够做类似的事情:
var featureRow = Ti.UI.createView({ class: 'featureRow');