-
Notifications
You must be signed in to change notification settings - Fork 1
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
feat: add on click callback #1
feat: add on click callback #1
Conversation
Hi @tilman151, thank you so much for the contribution! The implementation looks great. Adding If you could add some tests and they pass I think we are ready to merge. |
Yeah, I'm familiar with uv. Will try to do it tomorrow. |
I added the tests to the CI in a separate job because setting up playwright is a time-consuming operation. On another note: you set up your dev dependencies as an extra. Typically they are added as a dependency group in |
Good catch on the dev dependencies! Feel free to add them as a dependency group instead of extras. Something failing with |
Ah, yeah. Forgot to deactivate the e2e tests in the test job and forgot to install the extra deps in the e2e job. Let me fix that. |
Should run now, hopefully. |
Amazing, thank you! Will release it now for v0.2.1 |
Released! 😄 |
If you want, I can also have a look at the selection callback. Shouldn't be that hard, now that the scaffolding is there. |
Great idea! Additional PRs are definitely appreciated. |
Hey, I recently needed some callbacks from Plotly in FastHTML and I figured your package might be the right place to put it.
I included the JS code in the
plotly_headers
and render a call to it when registering a callback. You can have a look at the example app to see it in action. If what I wrote is acceptable for you I'd add some tests to it before merging. Would addingplaywright
as a dev dependency be okay for you then? I'd like to actually do the click during an end2end test.