forked from TFMM/silent-auction
17 lines
598 B
PHP
17 lines
598 B
PHP
@push('js')
|
|
<script src="https://cdn.jsdelivr.net/npm/tom-select@2.4.3/dist/js/tom-select.complete.min.js"></script>
|
|
<link href="https://cdn.jsdelivr.net/npm/tom-select@2.4.3/dist/css/tom-select.bootstrap5.min.css" rel="stylesheet">
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
document.querySelectorAll('select').forEach((el) => {
|
|
new TomSelect(el, {
|
|
create: false,
|
|
sortField: {
|
|
field: 'text',
|
|
direction: 'asc'
|
|
}
|
|
});
|
|
});
|
|
});
|
|
</script>
|
|
@endpush |