Skip to content

How to use hydro with Bootstrap modal, accordion, and any bootstrap JavaScript related #34

Closed Answered by kjeske
PatrickPo87 asked this question in Q&A
Discussion options

You must be logged in to vote

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>

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@PatrickPo87
Comment options

@kjeske
Comment options

Answer selected by PatrickPo87
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants