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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -