Gravatar for mark.angus@sitesystems.ca

Question by mark, May 4, 2015 4:10 PM

How to set up infinite scrolling using jsframeworks

Hi, I am using the jsframeworks and am trying to follow this example https://developers.coveo.com/display/public/JsSearch/ResultList+Component#ResultListComponent-Sample on how to use infinite scrolling with no success.

Would you mind providing a scale down working sample for me to follow?

Thanks in advance.

1 Reply
Gravatar for mark.angus@sitesystems.ca

Answer by mark, May 5, 2015 8:53 AM

I figured it out! Thanks.

   <div class="report-preview-reference" id="report-preview" style="overflow:scroll; height:400px;">
     <div class="CoveoResultList"  
                                data-wait-animation="fade" data-enable-infinite-scroll="true" 
                                data-infinite-scroll-page-size="5" 
                                data-infinite-scroll-container-selector="#report-preview" 
                                data-result-template-id="resultTemplateId" >
       <div class="coveo-show-if-no-results">No results. </div>
     </div>
   </div>
Ask a question