API Documentation for MDBModalService


Topic: API Documentation for MDBModalService

edgar@jumpco.io pro premium asked 4 months ago

Where can I find documentation for the APIs like MDBModalService. What does hide(level) do?

Trivial examples isn't enough. Documentation on the various APIs is expected for a commercial product.


Arkadiusz Idzikowski staff answered 4 months ago

You can find 'Dynamic modal options' list in the API section of the modal documentation (switch tab to API at the top of the page).

The MDBModalService hide method is not a part of public API, you should use hide() method available for modalRef element, as explained in the examples for dynamic modal.


edgar@jumpco.io pro premium commented 4 months ago

sometimes hide on modalRef doesn't hide the modal. how do I wait until the modal is actually "shown"? Other frameworks typically returns a Promise or Observable to use to wait for the item to be "shown"


Arkadiusz Idzikowski staff commented 4 months ago

We explained how to listen to the events in this section: https://mdbootstrap.com/docs/angular/modals/basic/#listen-to-events

In this case opened is the same as shown.


Please insert min. 20 characters.
Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: Angular
  • MDB Version: 10.1.1
  • Device: PC
  • Browser: Any
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags
api