Topic: API Documentation for MDBModalService

Corneil Du Plessis premium asked 3 years 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 3 years 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.

Corneil Du Plessis premium commented 3 years 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 3 years ago

We explained how to listen to the events in this section:

In this case opened is the same as shown.

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Premium
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: 10.1.1
  • Device: PC
  • Browser: Any
  • OS: Windows
  • Provided sample code: No
  • Provided link: No