Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating contents (slots) of the modal #437

Open
Arrig0 opened this issue Mar 20, 2024 · 2 comments
Open

Updating contents (slots) of the modal #437

Arrig0 opened this issue Mar 20, 2024 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@Arrig0
Copy link

Arrig0 commented Mar 20, 2024

Version

vue-final-modal: v4.5.4
vue: v3
nuxt: v3.11

OS

Linux

Question

Sorry for the (maybe) trivial question, but how can I dynamically update the contents (slots) of the modal? I tried with some text via ref(), but it doesn't work.

Thanks in advance

@Arrig0 Arrig0 added the question Further information is requested label Mar 20, 2024
@Arrig0
Copy link
Author

Arrig0 commented Mar 21, 2024

My question is the same documented here:
#429

I would also need reactive props/attrs.

@Arrig0
Copy link
Author

Arrig0 commented Mar 21, 2024

Sorry, if I had read more issues, I would have solved it (#357)

I suggest that this reactivity question should be better documented.

const msg = ref('a message');
.....
slots: {
    default: computed(() => msg.value), 
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants