Ignore <template> slide elements
See original GitHub issueI’m dynamically generating a list of slides (using AlpineJS x-for
) before calling EmblaCarousel
, however it seems like the <template>
element is being picked up as a slide. My HTML structure looks like this:
<div class="embla">
<ul class="embla__container">
<template x-for="item in list"><li>...</li></template>
<!-- dynamically generated -->
<li class="embla__slide">...</li>
<li class="embla__slide">...</li>
<li class="embla__slide">...</li>
<li class="embla__slide">...</li>
<!-- end dynamically generated -->
</ul>
</div>
I’m now manually creating this list for the time-being, but is there any way to ignore the <template>
when creating an instance of Embla?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Customize a slide master - Microsoft Support
Use a slide master to add consistency to your colors, fonts, headings, logos, and other styles, and to help unify the form of...
Read more >How to Remove Elements from PowerPoint Templates
The following tutorial applies to PowerPoint 2019 and 365 and addresses how to remove elements from PowerPoint Templates using Slide Master.
Read more >Ignore And No Communication Ppt Slide Design - SlideGeeks
Run your eyes over our Ignore And No Communication Ppt Slide Design. They will appeal at the first examination. Download this Presentation download....
Read more >How-to: Create and customize the PowerPoint slide master
The core element: the master layout slide. At the heart of every PowerPoint template is the master layout slide. Adjustments to a master...
Read more >How to Add, Duplicate, Move, Delete or Hide Slides in Google ...
... keeping the design included in the template. Or sometimes, you might prefer to duplicate an existing slide to reuse its elements, such...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@hannahwoodward I’m going to mark this issue as resolved because this solution makes it possible to achieve what you want.
Please let me know if you don’t agree.
Hi @hannahwoodward,
FWIW, decades later, I want to let you know that it’s possible to provide your own slides from v6 and up.
👉 Please note:
rootNode
is mandatory when passing an object with element nodes instead of a single element node.containerNode
is omitted, Embla will pick the first immediate child inside therootNode
.slideNodes
has to be an array and not a nodeList.Best David