Skip to content

[Help]: Create embla carousel with reactive state options (ref)? #1145

Closed Answered by MickL
MickL asked this question in Help
Discussion options

You must be logged in to vote

Thanks for the quick reply! This actually works when using reactve() or computed() for the whole object:

const dragFree = ref(true);

const [emblaRef, emblaApi] = emblaCarouselVue(computed(() => ({
  dragFree,
}));

Very cool!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MickL
Comment options

Answer selected by MickL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
resolved This issue is resolved question Question about how to achieve something vue Issue is related to Vue
2 participants