tablerow

The tablerow object is used within the tablerow tag. It contains attributes of its parent for loop.

tablerow.length

Returns the number of iterations of the tablerow loop.

tablerow.index

Returns the current index of the tablerow loop, starting at 1.

tablerow.index0

Returns the current index of the tablerow loop, starting at 0.

tablerow.rindex

Returns tablerow.index in reverse order.

tablerow.rindex0

Returns tablerow.index0 in reverse order.

tablerow.first

Returns true if it's the first iteration of the tablerow loop. Returns false if it is not the first iteration.

tablerow.last

Returns true if it's the last iteration of the tablerow loop. Returns false if it is not the last iteration.

tablerow.col

Returns the index of the current row, starting at 1.

tablerow.col0

Returns the index of the current row, starting at 0.

tablerow.col_first

Returns true if the current column is the first column in a row, returns false if it is not.

tablerow.col_last

Returns true if the current column is the last column in a row, returns false if it is not.

Want to discuss this page?

Visit the Shopify Community