2
我想使用CollectionView在表格中显示元素列表。我需要在tbody元素中添加一个类和数据属性。当我做这样的事情时:在将Ember.CollectionView呈现到表格中时设置tbody属性
App.ListView = Ember.CollectionView.extend({
tagName: 'table',
classNameBindings: ['myClass'],
myClass: "my-class"
})
它只设置表元素的类而不是tbody元素的类。我如何在tbody元素中设置类和其他属性?