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
Is it possible to create a List without the need of a container? Because putting a div to act as a container changes the DOM parent-child structure if someone (aka: me) put this into some pre-existing project.
Let's look at your examploe below. It works perfectly, but I really need to create a parent container like, in this example, (<div id="users">)? Is there some way I can have a list just from the <tbody class="list"> without creating a parent element?
<divid="users"><inputclass="search" placeholder="Search" />
<buttonclass="sort" data-sort="name">
Sort by name
</button><table><!-- IMPORTANT, class="list" have to be at tbody --><tbodyclass="list"><tr><tdclass="name">Jonny Stromberg</td><tdclass="born">1986</td></tr><tr><tdclass="name">Jonas Arnklint</td><tdclass="born">1985</td></tr></tbody></table></div><scriptsrc="//cdnjs.cloudflare.com/ajax/libs/list.js/1.5.0/list.min.js"></script><script>varoptions={valueNames: ['name','born']};varuserList=newList('users',options);</script>
The text was updated successfully, but these errors were encountered:
Is it possible to create a List without the need of a container? Because putting a div to act as a container changes the DOM parent-child structure if someone (aka: me) put this into some pre-existing project.
Let's look at your examploe below. It works perfectly, but I really need to create a parent container like, in this example, (
<div id="users">
)? Is there some way I can have a list just from the<tbody class="list">
without creating a parent element?The text was updated successfully, but these errors were encountered: