How to use hydro with Bootstrap modal, accordion, and any bootstrap JavaScript related #34
-
Hi Guys! Im having fun with hydro. I would like to ask for your how to use bootstrap modals, accordion, tostrjs or sweetalert or jquery ui datepicker with hydro? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Answered by
kjeske
Jun 11, 2024
Replies: 1 comment 2 replies
-
Hi! Thank for trying Hydro! When it comes to usage of JS UI libraries, you can use build-in AlpineJs directives to trigger external JS code. Especially init is useful here. Once the element is loaded on page you can run custom JS code that will trigger your external libraries. <div x-init="$($el).dialog()">
Content
</div> |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
PatrickPo87
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Thank for trying Hydro!
When it comes to usage of JS UI libraries, you can use build-in AlpineJs directives to trigger external JS code. Especially init is useful here. Once the element is loaded on page you can run custom JS code that will trigger your external libraries.