-
For example, when I toggle modal by $('#modal').modal('toggle'), how do I attach a parameter to tell modal the source elem
|
Beta Was this translation helpful? Give feedback.
Answered by
GeoSot
Jun 21, 2021
Replies: 1 comment 1 reply
-
you can try I think it works for now, but I wouldn't suggest it. PS: |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FoundAdd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can try
$('#record-modal').modal('toggle', my-source-element)
I think it works for now, but I wouldn't suggest it.
Instead I would suggest you to use Modal.getOrCreateInstance('#record-modal').toggle(my-source-element)
PS:
getOrCreateInstance
method will be available in 5.0.2(will be released soon)