Hi!I'm trying to find a pattern that takes a collection of data and produces rows with 3 items in each row. My domain is I'm working with is a Unit that has many Measurements. I need to render those Measurements as a small widget to display the measurement name and last value recorded.An example of markup would be something like:<div class="measurements-grid"><div class="row-fluid"><!-- 3 measurements per row --><div class="span4 thumbnail measurement"><span class="name">{{ measurement.name }}</span><span class="value">{{ value }}</span><div class="graph"></div></div></div><!-- 12 total measurements would be 4 rows --></div>Any help would be greatly appreciated!Thanks!- Joe--
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.
To view this discussion on the web visit https://groups.google.com/d/msg/backbone-marionette/-/b9BR-75BBBkJ.
For more options, visit https://groups.google.com/groups/opt_out.
To unsubscribe from this group, send email to backbone-marionette+unsub...@googlegroups.com.
To unsubscribe from this group, send email to backbone-marionette+unsub...@googlegroups.com.
To unsubscribe from this group, send email to backbone-marionette+unsub...@googlegroups.com.
To unsubscribe from this group, send email to backbone-marion...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/backbone-marionette/-/RZyqsp_D94AJ.
To view this discussion on the web visit https://groups.google.com/d/msg/backbone-marionette/-/RZyqsp_D94AJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
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-marionette+unsub...@googlegroups.com.
The measurement data should be returned from your server already grouped, so that each model is 1 group of 3 measurements.
IMO, Backbone models are view-models, not relational models. They are meant to be tailored to the specific screens that they are used on. You don't want to do grouping, filtering and other relational functions on the browser if you don't have to.
What if I have one collection that should be used with multiple views?As an example: a photo gallery with an index view in a "grid" layout, and a modal overlay layout that contains an item detail view and a list of those same thumbs in a single row. It seems wasteful to fetch the collection from the server twice. Where would be the most appropriate method to reformat the response?
To view this discussion on the web visit https://groups.google.com/d/msg/backbone-marionette/-/RZyqsp_D94AJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
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/-/DnrKMkEV3-UJ.
To unsubscribe from this group, send email to backbone-marionette+unsubscribe...@googlegroups.com.
To unsubscribe from this group, send email to backbone-marionette+unsubscribe...@googlegroups.com.
To unsubscribe from this group, send email to backbone-marionette+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/backbone-marionette/-/b9BR-75BBBkJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
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-marionette+unsubscribe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/backbone-marionette/-/RZyqsp_D94AJ.
For more options, visit https://groups.google.com/groups/opt_out.
--
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-marionette+unsub...@googlegroups.com.