-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add index as an optional parameter to #each block params #10158
Comments
@fivetanley you can (or will be able to). The index here would be lovely.. |
@tim-evans This should be easy to add if you're up for it. I think you can just change https://github.com/emberjs/ember.js/blob/master/packages/ember-views/lib/views/collection_view.js#L360 to |
Ok! It seems strange that the test for this belongs in ember-htmlbars. It's a tad confusing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I would like to change the DOM styling of items according to their position.
The following image is an example of doing so in our app:
I would ideally like to write components that look at its index for rendering different display information:
The text was updated successfully, but these errors were encountered: