databinding items inside a table with multiple rows.

0 views
Skip to first unread message

Gabriel

unread,
May 30, 2009, 12:02:52 PM5/30/09
to chainjs
Hello,

I have been trying to use chain.js in the following context without
success. Maybe you can help me or let me know if it is even possible.

My items that will be data bound will be inside a table with 4 items
per row. Example:

<table>
<tr>
<td><span class="name">Item 1</span></td>
<td><span class="name">Item 2</span></td>
<td><span class="name">Item 3</span></td>
<td><span class="name">Item 4</span></td>
</tr>
<tr>
<td><span class="name">Item 5</span></td>
<td><span class="name">Item 6</span></td>
<td><span class="name">Item 7</span></td>
<td><span class="name">Item 8</span></td>
</tr>
</table>

Would it be possible to use chain to accomplish this? If so, how?

Thanks,

Gabriel

Rizqi

unread,
May 31, 2009, 5:08:45 PM5/31/09
to chainjs
Hi, it is rather difficult, since chain's iteration is done by cloning
the dom-element.

if you need template-based engine, you might be interested in PURE:
http://wiki.github.com/pure/pure

cheers
Reply all
Reply to author
Forward
0 new messages