tablerow
Generates table rows and cells for each item.
Outputs <tr> and <td> elements; cols sets the cells per row. Wrap it in a <table>.
Syntax
Section titled “Syntax”{% tablerow item in array cols: 3 %}…{% endtablerow %}Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
cols |
number | Cells per row. |
limit |
number | Most items. |
offset |
number | Items to skip. |
Example
Section titled “Example”<table>{% tablerow i in (1..4) cols: 2 %}{{ i }}{% endtablerow %}</table><table><tr class="row1"><td class="col1">1</td><td class="col2">2</td></tr><tr class="row2"><td class="col1">3</td><td class="col2">4</td></tr></table>Related
Section titled “Related”Compatibility
Section titled “Compatibility”Shopify: Same as Shopify.
Since theme platform 1.0.
Was this page helpful?

