On Friday, October 5, 2012 at 2:50 AM, Stratos Pavlakis wrote:
Hi Andy,Shouldn't the id you want to generate be part of the template?
On Friday, October 5, 2012 5:05:01 AM UTC+3, AndyL wrote:I'm using a composite view to generate an HTML table. My ItemView uses a tagName: 'tr' and className: 'rowStyle'. So far so good.
Now I'd like the view to insert a unique ID into each of the generated ItemViews. I'm not sure how to do this.
I tried setting the 'id' addribute in my ItemView like so: id: "model_#{@model.get('id')}" But this doesn't work.
What is a quick/simple way to set a dynamic id in an ItemView ??
Tx, Andy
--
You received this message because you are subscribed to the Google Groups "Backbone.Marionette" group.
To post to this group, send email to backbone-...@googlegroups.com.
To unsubscribe from this group, send email to backbone-marion...@googlegroups.com.
Visit this group at http://groups.google.com/group/backbone-marionette?hl=en.
To view this discussion on the web visit https://groups.google.com/d/msg/backbone-marionette/-/76LBsjWGVJcJ.
For more options, visit https://groups.google.com/groups/opt_out.