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
Open dialogs #6366
Open dialogs #6366
Conversation
Thanks for making a pull request to JupyterLab! To try out this branch on binder, follow this link: |
cc @timkpaine |
@fcollonval, you might need to await a |
e.g.
|
@blink1073 The trick was to specify the mouse event position as the code test which item is hit. I clean the API and add some documentation. Let me know if it is good to go. |
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.
Excellent, and thank you for the new docs as well!
Some of the errors are due to a connectivity issue with npm, but this one is legit:
|
😕 I try on two PC's and did also an |
Ah, the issue was that |
...and now I have no idea why this is failing. I need to rebuild my dev environment locally, then will come back to this... |
@blink1073 thx for the effort. I'll correct the remaining bugs. My unit tests were poorly design. But I found a fix (not yet push). For my information, are the tests run with the branch merged in the current |
Correct, I rebased. |
Unit tests are corrected. |
1ceb707
to
e79b6c1
Compare
Thanks @afshin for the rebase. I corrected the code. |
In it goes, thanks @fcollonval! |
References
Fix #6365
Code changes
Add in
filebrowser
package, two new helper functions building customizedDialog
to request the user to select files or folders.For the helper to open files, a filter function [(model: Contents.IModel): boolean] can be specified to filter files shown in the browser widget - the folders cannot be filtered. This is achieved through a new
FilterFileBrowserModel
class inheriting fromFileBrowserModel
.If nothing is selected,
getValue
fallback to the current directory.User-facing changes
None
Backwards-incompatible changes
None
Questions