-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update modal's show
method to accept relatedTarget
as an argument
#33300
Conversation
What exactly are you trying to improve here? |
@XhmikosR explore missed parameter |
@rohit2sharma95 please check this out if it's right or now (and feel free to rename the PR title/variables etc ) |
bootstrap.Modal.show(relatedTarget)
relatedTarget
as an argument
@@ -892,6 +892,13 @@ Manually opens a modal. **Returns to the caller before the modal has actually be | |||
myModal.show() | |||
``` | |||
|
|||
Also, you can pass related target: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, please mention that the DOM element passed as the first argument can be received in the modal events (as the relatedTarget
property)
relatedTarget
as an argumentshow
method to accept relatedTarget
as an argument
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @WinterSilence
Add new example for
bootstrap.Modal.show(relatedTarget)