Move big js dropdown function out of html #17
-
Without overwriting this whole file how can I move the big dropdown function into my app.js file? https://github.com/joshhanley/livewire-autocomplete/blob/main/resources/views/autocomplete.blade.php |
Beta Was this translation helpful? Give feedback.
Answered by
joshhanley
Feb 12, 2023
Replies: 1 comment 2 replies
-
@howdu currently there's no easy way to do that. But I'd love to come up with a solution that allows it to be disabled in the blade file and instead be able to be included in a compiled JS file like |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@howdu I was experimenting with a rewrite on the weekend that actually includes an external
.js
file using ascript
tag, that can be turned off using a config option. This would in theory allow it to be included using a bundler or manually in a layout file. Still experimenting with it though.