1
0
mirror of https://github.com/tabler/tabler.git synced 2025-12-22 18:04:26 +04:00
Files
tabler/shared/includes/js/tabler-list.html
2025-04-15 23:18:49 +02:00

10 lines
412 B
HTML

<script>
{% if environment == 'development' %}window.tabler_list = window.tabler_list || {};{% endif %}
document.addEventListener("DOMContentLoaded", function() {
const list = {% if environment == 'development' %}window.tabler_list["table-{{ id }}"] = {% endif %}new List('table-{{ id }}', {
sortClass: 'table-sort',
listClass: 'table-tbody',
valueNames: {{ include.parameters }}
});
})
</script>