HTML5 Data Bindings Extended Repeater Support Product Page
Answered
How can I know if I should use ...
Asked 10 years ago
1
has this question
10 years ago Gerard Bartholome posted:
"data.repeat" or "data.repeat-children" Replies
Replied 10 years ago
10 years ago Teodor Kuduschiev replied:
Hello Gerard,
We've discussed this in our forums as well as we've explained this in the video tutorials.
As both names indicate:
- Repeat region (data.repeat when applied to an existing element) repeats the element it is applied to. When you apply it to a div, for example, and your feed returns 10 records, this div will be repeated 10 times on your page
- Repeat Children region (data.repeat-children when applied to an existing element) repeats the child element of the container it is applied to. For example if you apply the repeat-children to an UL with a LI inside, and your feed returns 10 records, you will then have an UL with 10 LIs inside..
It is up to you which of the two option to use.
We've discussed this in our forums as well as we've explained this in the video tutorials.
As both names indicate:
- Repeat region (data.repeat when applied to an existing element) repeats the element it is applied to. When you apply it to a div, for example, and your feed returns 10 records, this div will be repeated 10 times on your page
- Repeat Children region (data.repeat-children when applied to an existing element) repeats the child element of the container it is applied to. For example if you apply the repeat-children to an UL with a LI inside, and your feed returns 10 records, you will then have an UL with 10 LIs inside..
It is up to you which of the two option to use.
Replied 10 years ago
10 years ago Gerard Bartholome replied:
Hello Teodor,
Thank you for your answer.
I tried to find a response with the search functions and the subjet "data.repeat data.repeat-children" but didn't find anything. Is there a special search function for the forums ?
Thank you for your answer.
I tried to find a response with the search functions and the subjet "data.repeat data.repeat-children" but didn't find anything. Is there a special search function for the forums ?