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

Custom container component for programmatically opened modals #272

Open
dword-design opened this issue Aug 13, 2024 · 0 comments
Open

Custom container component for programmatically opened modals #272

dword-design opened this issue Aug 13, 2024 · 0 comments

Comments

@dword-design
Copy link

Description

Allow to instantiate a <b-modal-orchestrator /> component to control where programmatically opened modals are rendered.

Why Buefy need this feature

When opening modals programmatically, the modal is currently opened in a fixed root-level div. But e.g. when having a sidebar layout, you want to show the modals in the main part of the layout, not above the sidebar.

bootstrap-vue-next requires to instantiate a <b-modal-orchestrator /> component that is then used as the root. I think they are using a global state object to then render the modals in the orchestrator. This way we also wouldn't have to mount a new Vue instance.

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

1 participant