Files
WYGIWYH/app/templates/includes/scripts/hyperscript/init_tom_select.html
2025-01-25 01:30:24 -03:00

19 lines
314 B
HTML

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