-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Introduce a function to create nested closable modal #199
Conversation
Code Coverage Summary
Diff against main
Results for commit: adaf213 Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Co-authored-by: Marcin <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
Co-authored-by: Marcin <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
Co-authored-by: Marcin <[email protected]> Signed-off-by: Vedha Viyash <[email protected]>
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.
Hey @vedhav , extremely helpful function. I just left few notes about phrasing and WORDLIST inputs
@vedhav multimodal.mp4 |
Yes, this is intended because this creates flexibility to keep the secondary modal open. If this is not needed the user can simply do a: shinyjs::runjs("$('#modal_1').modal('hide')")
shinyjs::runjs("$('#modal_2').modal('hide')") |
It seems to me that Is there a particular reason for not doing that? Is it because |
That's a good idea @chlebowa I did not think about such implementation. But I feel that placing a "nested" modal inside another modal by actually placing it seemed like an intuitive way for users to use this function. Do you not feel this way? |
I don't follow. |
My understanding is that you were proposing a different implementation for |
No, I was referring to the Still, you could do |
The PR is closed but I don't think the discussion is. |
Introduces
nested_closeable_modal()
that can create nested popups inside an already existing popup.This will be used in the teal PR #930 as per the discussion in the PR.
Run the example to check it out: