I’m applying a repeat region to a ul element and finding out that a graphic element goes missing.
This is my placeholder before applying the repeating behavior:
This is what I get with the repeat applied:
This is the code itself, with the missing element highlighted:
data-attributes are used with some script.
Seems to me you are using the Feather icons - which use js code to replace the data-feateher attribute with the real data on page load.
You’re probably onto something @Teodor as I am using Feather icons, but they work fine without the repeat element, and adding the code you suggested doesn’t help.
Would a repeat region interfere on the client side?
@Nathaniel
The code i meantion is used to render your icon on the clientside. I took it from the Feather icons docs.
Yes, as the script i mentioned loads on page load, before the repeat region is actually rendered, so the script runs before the elements with data-attributes load.
Is it possible to send a link to your page, where i can check this?
I understand @Teodor, thanks for your guidance. Unless you are free and willing for a screen share, I’m afraid I’m developing on a local host and I don’t have a public link.
I’ll look on the client side interaction, but whilst I have you here, would you have any suggestion on adding padding around an FA icon? This is the only case where I’ll have this issue and I’m fine with using the built-in Wappler FA icon functionality, but they are so close to the text, they make it unreadable.
Option 1 did exactly what I needed, thanks so much @Teodor.
If I may, I’ll ask a final question. How would you go with adding a repeated <div class="dropdown-divider"></div> after each of the repeated element, but the last?
I’m moving from the old Dreamweaver repeated behavior where you could just play with the php tags, I don’t have all of the client/server logic and references acquired yet.
I’d suggest to go with a repeat-children applied to the <ul>. This way you will repeat the <li> and <div>.
In your current code, the <li> will repeat itself and not the divider.
So your code: