Dynamically loaded with blaze
See original GitHub issueHello, Im using MeteorJS and I load my slides with a {{#each }} template helper
<div class="swiper-container">
<div class="swiper-wrapper">
{{#each epis}}
<div class="swiper-slide">
<div class="epi">
..content here...
</div>
</div>
{{/each}}
</div>
<div class="swiper-pagination"></div>
</div>
Im initializing swiper instance on onRendered callback
Template.episLista.rendered = function(){
var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
slidesPerView: 3,
slidesPerColumn: 2,
paginationClickable: true,
spaceBetween: 10,
});
}
The swiper isn’t loaded at all… I think that the problem is that the HTML Layout of Swiper can’t be dynamically generated… what do you think ?
Issue Analytics
- State:
- Created 8 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Dynamically loaded with blaze · Issue #1445 - GitHub
Hello, Im using MeteorJS and I load my slides with a {{#each } ... Dynamically loaded with blaze #1445 ... The swiper isn't...
Read more >Dynamically loading templates (partials) using Blaze Meteor.js
It allows you to load a template only by its name. Easy thing here because you can let your template handle dynamic names...
Read more >Using Dynamic Commands - Text Blaze
Text Blaze commands allow you to create dynamic snippets. Commands are replaced when the snippet is inserted with a dynamic value or action....
Read more >Blaze dynamic template loading vs React dynamic component ...
I'm trying to dynamically load React components based on a string reference in the database. I've done it with Blaze and its straight ......
Read more >Dynamic Template Includes With Blaze - Discover Meteor
Static VS Dynamic. I'm talking about dynamic template includes. A static template include is the kind we use all the time, like: {{> ......
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 Free
Top 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
Hi! I had to time to think and made it work with a different approach, using Observe Changes, here’s my code
You can generate Swiper content dynamically, you just need to init it when it is available in DOM