feat: install and scaffold Tablar theme #6

Merged
rlong merged 139 commits from feature/tablar-theme into master 2026-05-02 16:01:21 -04:00
Showing only changes of commit 87aa8d74d4 - Show all commits
@@ -19,15 +19,16 @@
dropdownParent: 'body',
controlInput: '<input>',
sortField: [{
field: 'text',
direction: 'asc',
func: function(a, b) {
const a_val = a.text.split(' - ')[0];
const b_val = b.text.split(' - ')[0];
return parseInt(a_val, 10) - parseInt(b_val, 10);
field: '$text',
direction: 'asc'
}],
render: {
option: function(item, escape) {
return '<div>' + escape(item.text) + '</div>';
}
}]
}
});
el.tomselect.sortOptions(); // Force initial sort
});
});
</script>