javascript - How to get model property in className of ItemView? -
i app need render ul of users ids in class attribute of li. s tried this:
marionette.itemview.extend({ tagname: 'li', classname: this.model.get('user_id'), template: usertpl });
but didn't work. possible achieve other way?
can't this?
classname: function(){ return this.model.get('user_id'); }
Comments
Post a Comment