1

how can I call afterRender after generating all foreach elements? I want to initialize slider after rendering all slides.

I've tried:

<div class="order__picker-dates owl-carousel" data-bind="foreach: deliveryDays, afterRender: renderedDelivery">
  <div class="slide">...</div>
</div>

but put console.log(jQuery('.slide').length) in renderedDelivery function. Sometimes it writes 0 elements, sometimes all generated. renderedDelivery fires ones.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.