Not sure how to do this... #708
thedotmack
started this conversation in
4. General
Replies: 1 comment 1 reply
-
@thedotmack You can trigger event from vimeo and capture it in your alpine component. playerCommercial.on('fullscreenchange', function(data) {
document.dispatchEvent(new CustomEvent('open-modal' ))
}) <div x-data="{ showModal: false }" @open-modal.document="showModal = true">
...
</div> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am pretty new to this, and I'm digging in to Alpine for the first time right now.
I'm trying to toggle this via a custom event from another library, Vimeo's player library:
<div x-data="{ showModal: false }">
with this event
Beta Was this translation helpful? Give feedback.
All reactions