-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Add password dialog to apputils #7855
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
/** | ||
* Widget body for input password dialog | ||
*/ | ||
class InputPasswordDialog extends InputDialogBase<string> { |
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.
Would it be simpler to just inherit InputTextDialog
?
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.
I don't think that it would change the length of the code. The boolean input dialog is also basically the same. All that differ is the constructor.
f391414
to
5d70f55
Compare
How about adding it to the "User Interface Helpers" docs as well? https://jupyterlab.readthedocs.io/en/latest/developer/ui_helpers.html#input-dialogs |
Just added an example. |
Any chances of getting this in? |
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!
Code changes
Adding a password dialog to AppUtil.
This is something that I used for an extension (and required duplicating some JupyterLab code). This is much simpler this way.
Backwards-incompatible changes
None