I am using a Flex Repeater and I have created 4 instances inside it, which shows in a column. I want when i add my 5 instance it should shift to the another column. can you help me with the Flex repeater element styles how can i do it ?
this how it looks like.
Change the wrap property to something other than nowrap. You'll need to make sure that your flex repeater is tall enough for only 4 items to make it wrap.
Is there any handy way we can contribute sample code to get each other started? You have none as far as I can see. Or could we do it here with a thread per function?
Should we get an integration-toolkit tag added? You've done enough for IA!
Would the 3rd Party Modules section be the right place?
How big are your instances if you set props.elementPosition.grow to 0? It might be that your normal instance size is much smaller and they are growing to fill the extra space. You could also try setting props.elementPosition.basis to 50px and see if they start to wrap.
This is what is happening. Clamp the min size of your template instances to force it to wrap after 4 instances or clamp the height of the repeater itself.
If your templates are going to have dynamic content it may be hard to force it to always wrap after 4.
Based on a quick browse of the repeater props you posted earlier, it looks like the box size in each instance is being driven by the embedded view. Open the embedded view and tweak to your needs.
You likely have a label component with a margin defined on its style, or the root container of the embedded view has padding defined on its style.