Skip to content
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

Make cursorForHandle and it's argument type accessible from outside BasicMouseHandler. #92

Merged
merged 1 commit into from Jul 21, 2020

Conversation

ghost
Copy link

@ghost ghost commented Jul 20, 2020

Hi, my name is Logan McNichols. I am an intern for Jupyter Cal Poly, working with @kgoo124 and @ryuntalan to develop a tabular data editor powered by the DataGrid. We want to add a grab cursor for moving rows and columns. The class BasicMouseHandler in the package @lumino/datagrid provides much of the core functionality we need, but it is difficult modify the default cursor behavior.

This pull request would move the method cursorForHandle from the Private namespace to a public method within the BasicMouseHandler class. Implementations of cursorForHandle in BasicMouseHandler would be updated to reflect this change. The type ResizeHandle would be exported as well so that classes extending BasicMouseHandler could create custom versions of cursorForHandle.

Fixes #91

…d. Changed the implementations of cursorForHandle in BasicMouseHandler from Private.cursorForHandle(handle) to this.cursorForHandle(handle). Made ResizeHandle and exported type.
@blink1073
Copy link
Contributor

Hi @lmcnichols ! I'm afk for the night, will look at this tomorrow.

@ghost
Copy link
Author

ghost commented Jul 20, 2020

Sounds good! Thanks

Copy link
Contributor

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@blink1073 blink1073 merged commit 53fa7a8 into jupyterlab:master Jul 21, 2020
@blink1073
Copy link
Contributor

Released as @lumino/datagrid@0.11.0. 🎉

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make it easier to add custom cursors by extending BasicMouseHandler.
2 participants