You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there a way to timeout a modal dialog? For example, I want to pop up a modal dialog that the user can respond to, but if they do not respond after a certain number of seconds, it closes and performs a default action. I've created a component for my dialog, but I can't seem to figure out how to close the dialog from within that component.
The text was updated successfully, but these errors were encountered:
I have a similar question, I want to trigger closing the modal either from the component which opened the modal or from the dialog component (doesn't matter).
The timeout is just an example, I want to close it later with a subscription to a WebSocket.
To close a dialog from the modal body (not the header or footer) you can use the closeDialogSubject. This can be set on the service while opening the modal:
Then you can set a custom method on the component that should call a next() on the subject. This will close the modal from the internal component itself. Example:
Is there a way to timeout a modal dialog? For example, I want to pop up a modal dialog that the user can respond to, but if they do not respond after a certain number of seconds, it closes and performs a default action. I've created a component for my dialog, but I can't seem to figure out how to close the dialog from within that component.
The text was updated successfully, but these errors were encountered: