Files
WYGIWYH/app/templates/includes/scripts/hyperscript/init_tom_select.html
2025-11-10 00:28:16 -03:00

20 lines
344 B
HTML

<script type="text/hyperscript">
behavior init_tom_select
init
set selects to <select/> in me
for x in selects
remove .select from x
js(it)
TomSelect(it)
end
end
end
end
on reset
for elm in <select/> in event.target
call elm.tomselect.clear()
end
end
</script>