childrenIndexed
Add a list of children generated by applying componentFunction to each item in a list of models, providing the index of each item.
This is the indexed variant of children, useful for patterns like spacer-before where the first item needs special handling. Prefer this over manual forEachIndexed { ... child() } loops for better diffing — see R27.
Parameters
Data models to be rendered as children
A function to create a unique id from index and data model
A function that indicates if the child should fix to the top of the collection when it is scrolled out of view
A function that indicates whether the child should span across all columns
A function to return the number of columns that a child should span
A function that generates a Component from index and data model
Add a list of children generated by applying componentFunction to each item in a list of models, providing the index of each item.
Parameters
Data models to be rendered as children
A function to create a unique id from index and data model
A function to create a list of deps from index and data model
A function that indicates if the child should fix to the top of the collection when it is scrolled out of view
A function that indicates whether the child should span across all columns
A function to return the number of columns that a child should span
A function that generates a Component from index and data model