BorisMoore / jsviews

Interactive data-driven views, MVVM and MVP, built on top of JsRender templates
http://www.jsviews.com/#jsviews
MIT License
855 stars 130 forks source link

Rendering unlinked data #355

Closed in32bit closed 7 years ago

in32bit commented 7 years ago

Hi Boris,

At this template i'm trying to use rowspan by the length of a collection. But when i add a new object i lose the structure.

Do you have a solution?

Thanks!

BorisMoore commented 7 years ago

The way you have it, it is not data-linked to people.length. You need to write:

<td style="vertical-align:middle" data-link="rowspan{:~len}">
  ...
</td>
in32bit commented 7 years ago

Thank you. I will try to stay more linked.. Amazing work.