Flexbox layout in fx-repeat #300
-
|
In Foundation Framework there is a flexbox utility xy-grid. Here there is a container with <fx-repeat ref="'3','4','5'" class="grid-x">
<template>
<div class="cell small-{.}">
...
</div>
</template>
</fx-repeat>It renders something like this: <fx-repeat ref="'3','4','5'" index="1" class="grid-x">
<fx-repeatitem relevant="" repeat-index="">
<div class="cell small-3">
...
</div>
</fx-repeatitem>
<fx-repeatitem relevant="">
<div class="cell small-4">
...
</div>
</fx-repeatitem>
<fx-repeatitem relevant="">
<div class="cell small-5">
...
</div>
</fx-repeatitem>
</fx-repeat>The problem is that fx-repeatitem is wedged between the grid container and the cell element, and therefor it isn't rendering correctly . Is there a fore conforming solution for this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
@AlbrechtKaroly have a look here - https://jinntec.github.io/Fore/demo/repeat-attributes.html Hope this page will give an inspiration ....
Please share your findings. Thanks |
Beta Was this translation helpful? Give feedback.
-
|
should mention the limitation - currently data-ref cannot be nested to get the same as nested fx-repeats would do - however you can still nest fx-repeat within your 'data-ref repeat'. We eventually plan to improve |
Beta Was this translation helpful? Give feedback.
should mention the limitation - currently data-ref cannot be nested to get the same as nested fx-repeats would do - however you can still nest fx-repeat within your 'data-ref repeat'.
We eventually plan to improve
data-refsupport if that's of particular interest.