mirror of
https://github.com/tabler/tabler.git
synced 2025-12-26 11:16:12 +04:00
Add documentation App (#2219)
This commit is contained in:
10
shared/includes/js/tabler-list.html
Normal file
10
shared/includes/js/tabler-list.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user