Components that iterate like Foreach and ListEdit take an element parameter. Usually, a static-binding is used to set the element; and it is almost certainly the case that the element will match the tag in the template, where the component appears. e.g.,
It is not always the case. I rarely use the element=".." attribute on @Foreach.
Perhaps this is a place for a custom component that wraps @Foreach and sets the element attribute automatically for you?
Erik
<tr jwcid="@Foreach" ... element="tr">
It would be a nice simplification if the element could by default be inferred. e.g.,
<tr jwcid="@Foreach"> <!-- element="tr" by default -->
<li jwcid="@Foreach"> <!-- element="li" by default -->
Similarly, I'd like to apply this pattern for any component that iterates.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
