Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tablerow drop does not expose its row property #77

Closed
jg-rp opened this issue Oct 9, 2022 · 0 comments
Closed

tablerow drop does not expose its row property #77

jg-rp opened this issue Oct 9, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jg-rp
Copy link
Owner

jg-rp commented Oct 9, 2022

The tablerowloop object available within the tablerow tag should expose a row property, being the current row number of the table.

The documentation for tablerowloop needs updating too.

Example template:

{% tablerow i in (1..5) cols:2 %}
{{ i }} {{ tablerowloop.row }}
{% endtablerow %}

Expected output:

<tr class="row1">\n
<td class="col1">1 1</td>
<td class="col2">2 1</td>
</tr>\n
<tr class="row2">
<td class="col1">3 2</td>
<td class="col2">4 2</td>
</tr>\n
<tr class="row3">
<td class="col1">5 3</td>
</tr>\n
@jg-rp jg-rp added the bug Something isn't working label Oct 9, 2022
jg-rp added a commit that referenced this issue Oct 9, 2022
@jg-rp jg-rp closed this as completed Oct 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant