Skip to content Skip to sidebar Skip to footer

Creating A Calendar Like Table Using Underscore And Backbone Js Templates

Hi Guys I am a total noob at backbone and underscore. I need to create a table that shows appointment bookings for some dates. I have to make it look something like this: This is

Solution 1:

Your data structure is a little tedious to play with. I would suggest doing 2 passes in your template to build the table header & body separately.

Here's what I'm trying to say:

// template start 
<table>
  <thead>
    /* ...code to create header */
  </thead>
  <tbody>
  /* ... code to create row entries */
  </tbody>
</table>
// template end

fiddled it for you. Hope you can take it further from here.

Good Luck

Post a Comment for "Creating A Calendar Like Table Using Underscore And Backbone Js Templates"