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

Open modals from vue components #86

Closed
MotionPhix opened this issue Oct 23, 2022 · 5 comments
Closed

Open modals from vue components #86

MotionPhix opened this issue Oct 23, 2022 · 5 comments

Comments

@MotionPhix
Copy link

I want to be able to open modals (which are basically views pointing to certain routes - like posts/create.blade.php. From the documenation there are just a few limited example usage to follow along. There's the this.$splade.visit, can this also open a modal? If yes, how?

@bdsumon4u
Copy link
Contributor

I was also trying to open splade modal just like a normal modal, without route. But I couldn't.

@pascalbaljet
Copy link
Contributor

You can use this.$splade.modal(url) instead of the visit() method.

@MotionPhix
Copy link
Author

MotionPhix commented Oct 23, 2022 via email

@pascalbaljet
Copy link
Contributor

In that case, I think we should migrate to TypeScript. I'll open a new issue :)

@MotionPhix
Copy link
Author

You can use this.$splade.modal(url) instead of the visit() method.

Is it possible to open modals without binding them to a route?

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

No branches or pull requests

3 participants