modalfy
Last updated
Was this helpful?
Last updated
Was this helpful?
Notes:
Do not use if you're inside a React component. Please consider or instead.
You can't pass a modalName
to closeModal()
to close a modal that's not the currently displayed one. This is due to a current API limitation especially in the case where you'd have several modals with the same name opened, as Modalfy can't safely determine which one you wanted to close.
The object returned by modalfy()
is covered in .
If you're using TypeScript and have , you can get some nice autocomplete by utilising modalfy()
like this: