You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 7, 2026. It is now read-only.
Scrollable list works when the list is a static list. However, if the <li> is dynamically inserted into the <ul> in tt.EVENTS.PAGE_START the list won't scroll beyond the last item of the statically created list.
Below are the example js code and html. Please let us know how to make dynamically generated list scrollable. Thanks.
tt.on(tt.EVENTS.PAGE_START,'home',function(){console.log("I'm on the home page!");for(vari=0;i<=100;i++){console.log(i);varli=document.createElement('li')li.innerHTML=i+' akdsfj kadsfj';li.setAttribute('class','topcoat-list__item')li.setAttribute('data-rel','buttonExample')varspan=document.createElement('span')span.setAttribute('class','chevron')li.appendChild(span);$('#demoList').append(li)}});
<divclass="content scrollable" data-scroll-x="false" data-scroll-y="true"><!-- containers with the class scrollable are automatically hooked into iscroll --><divclass="topcoat-list__container"><ulid="demoList" class="topcoat-list list"><liclass="topcoat-list__item" data-rel="buttonExample"><spanclass="formItem">Buttons</span><spanclass="chevron"></span><spanclass="count"></span></li></ul></div></div>
Scrollable list works when the list is a static list. However, if the
<li>is dynamically inserted into the<ul>intt.EVENTS.PAGE_STARTthe list won't scroll beyond the last item of the statically created list.Below are the example js code and html. Please let us know how to make dynamically generated list scrollable. Thanks.