2.0 KiB
layout, title, nav
| layout | title | nav | ||
|---|---|---|---|---|
| default | tablerow |
|
tablerow
The tablerow object is used within the tablerow tag. It contains attributes of its parent for loop.
{% anchor_link " tablerow.length", "tablerow-length" %}
Returns the number of iterations of the tablerow loop.
{% anchor_link " tablerow.index", "tablerow-index" %}
Returns the current index of the tablerow loop, starting at 1.
{% anchor_link " tablerow.index0", "tablerow-index0" %}
Returns the current index of the tablerow loop, starting at 0.
{% anchor_link " tablerow.rindex", "tablerow-rindex" %}
Returns tablerow.index in reverse order.
{% anchor_link " tablerow.rindex0", "tablerow-rindex0" %}
Returns tablerow.index0 in reverse order.
{% anchor_link " tablerow.first", "tablerow-first" %}
Returns true if it's the first iteration of the tablerow loop. Returns false if it is not the first iteration.
{% anchor_link "tablerow.last", "tablerow-last" %}
Returns true if it's the last iteration of the tablerow loop. Returns false if it is not the last iteration.
{% anchor_link "tablerow.col", "tablerow-col" %}
Returns the index of the current row, starting at 1.
{% anchor_link "tablerow.col0", "tablerow-col0" %}
Returns the index of the current row, starting at 0.
{% anchor_link "tablerow.col_first", "tablerow-col_first" %}
Returns true if the current column is the first column in a row, returns false if it is not.
{% anchor_link " tablerow.col_last", "tablerow-col_last" %}
Returns true if the current column is the last column in a row, returns false if it is not.