forEach
abstract fun <T> forEach(iterable: Iterable<T>, action: ComponentBuilder.(T) -> Unit): ComponentBuilder
Iterates over the given iterable and applies an action to each element. The action receives both the component builder context and the current element, allowing component building per iteration.
Return
this component builder for chaining
Parameters
T
the type of elements in the iterable
iterable
the iterable to iterate over
action
the action lambda with component builder receiver to apply to each element