-
Notifications
You must be signed in to change notification settings - Fork 404
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
Slots iteration helpers #1620
Comments
@Spone I am trying to get more involved in view component is this possibly an issue I could help with |
@reeganviljoen Yes, you're welcome to start working on this! Let us know if you have questions or if you need help! |
I wrote some failing tests and a component to demonstrate what the itterators will look like #1753 |
@Spone the slot itteration counter helper has been added , I will be adding the iteration context soon |
Feature request
Similar to the iteration context provided when rendering collections, ViewComponent could provide contextual information, such as
#size
,#index
,#first?
, and#last?
, when rendering slots that have been defined withrenders_many
.Motivation
I personally encountered this need at least a dozen times in various projects. This also has been discussed in #545, #982 and #986.
The text was updated successfully, but these errors were encountered: