Feature request: change NgbModalRef's options after the modal is opened
See original GitHub issueIt would be nice to be able to change the properties of the opened modal such as backdrop or
beforeDismiss.
I need to change the backdrop
based on a conditional promise so that the user cannot close the modal when such condition is true.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:12 (5 by maintainers)
Top Results From Across the Web
Best practice for calling the NgbModal open method
I've got an impression that you are looking for the feature that is planned but not implemented yet - ability to open a...
Read more >Modal - Angular powered Bootstrap
open. open(content: any, options: NgbModalOptions) => NgbModalRef. Opens a new modal window with the specified content and supplied options.
Read more >Using a bootstrap modal as a dynamic component - Nishu Goel
So let us start by creating an Info modal component which we will render only when we require it on an operation in...
Read more >Implementing Modal Dialog Functions With Promise-based ...
Learn how to implement modal dialog functions with promise-based dialog results in your Angular application. See more from Wijmo today.
Read more >Writing a Generic Type-Safe ng-bootstrap NgbModal Launcher
For an Angular project for one of our clients, I've recently started using ng-bootstrap to implement standard modal dialogs in a ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Another try 😃
See live version here: https://stackblitz.com/edit/angular-6xqy8s-modal-prevent-dismiss
@benouat Not for my specific use case. What I need is to open the modal like you normalli would and once inside said modal I would make a post request. While that promise is resolving I need to disable the
backdrop
andkeyboard
click events so the user can’t close the modal.