On Oct 16, 4:24 am, Rizqi Ahmad <
raid...@yahoo.de> wrote:
> It would be rather difficult using table, since chain.js requires one
> container for one item (in your case it is 3).
> Does it need to be a table?
>
> this is a typical example for a recursive chaining. maybe you can see
>
> On Oct 15, 11:06 pm, Zack Moore <
TZMo...@gmail.com> wrote:
>
>
>
> > I'm trying to use chain to produce a table like this
> > <table>
> > <tr><td colspan="3">Level 1</td><tr>
> > <tr><th>Col1</th><th>Col2</th><th>Col3</th></tr>
> > <tr><td>some data</td><td>A</td><td>B</td></tr>
> > <tr><td>some data</td><td>A</td><td>B</td></tr>
> > <tr><td>some data</td><td>A</td><td>B</td></tr>
> > <tr><td colspan="3">Level 2</td><tr>
> > <tr><th>Col1</th><th>Col2</th><th>Col3</th></tr>
> > <tr><td>some data</td><td>A</td><td>B</td></tr>
> > <tr><td>some data</td><td>A</td><td>B</td></tr>
> > <tr><td colspan="3">Level 3</td><tr>
> > <tr><th>Col1</th><th>Col2</th><th>Col3</th></tr>
> > <tr><td>some data</td><td>A</td><td>B</td></tr>
> > <tr><td>some data</td><td>A</td><td>B</td></tr>
> > </table>
>
> > I apologize if it is a little crowded.
> > I have 3 levels of data. Each level begins with 1 row that names the
> > level followed by a new level that repeats the column headers.
> > Then the data is displayed.
>
> > I can't figure out a way using chain to populate a table with
> > different types of rows.
>