question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

widgets.HTML events

See original GitHub issue

Hi,

I’m playing a little bit with the ipywidgets’ features, and I was wondering if there’s actually a way to add events on the HTML widget ?

My problem is the following: I’d like to create checkboxes that are actually a little bit customizable. Nonetheless, I noticed that this isn’t quite possible with the widgets.Checkbox() for now.

I used then the widgets.HTML() feature, with some css and HTML I managed to get a checkbox with some customized style. But obviously, the value of the widget being hardcoded HTML and CSS, when I try to do my_html.observe(func, names="value") it doesn’t work.

Is there another way to implement such feature ? I’m on JupyterLab by the way.

Thank you very much, this question aside I’m really enjoying the ipywidgets’ features so far !

Michael

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jasongroutcommented, May 17, 2018

We could use some docs showing a good example in this doc: http://ipywidgets.readthedocs.io/en/latest/examples/Widget Styling.html#

0reactions
martinRenoucommented, Jan 7, 2020

Another solution might be to use @mwcraig 's ipyevents which allows you to listen to lots of events on a specific widget. I am not sure about the granularity of it though (e.g. if you can listen to events on a specific part of your HTML).

I suppose it is safe to close this issue now. But feel free to reopen it if needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTML Event Calendar widget - Elfsight
An interactive HTML event calendar widget generates awareness over the business of your organization. Also, it increases the popularity of your brand as...
Read more >
Widget Events — Jupyter Widgets 7.6.5 documentation
Widget Events ¶. Special events¶ ... Javascript links persist when embedding widgets in html web pages without a kernel. [10]:. caption = widgets....
Read more >
7 Best Free Event Calendar Widgets for Websites in 2022
7 Best Event Calendars to Use for Free · ElfSight Event Calendar widget · Powr Event Gallery App · TheEventsCalendar · Event Calendar...
Read more >
Event Calendar Widget for your website
The most powerful and feature filled Event Calendar Widget that you could add to your website. Get Started. The most powerful 'widget' you'll...
Read more >
Widget Event Processing - L3HarrisGeospatial.com
What are Widget Events? ... A widget event is a message returned from the window system when a user manipulates a widget. In...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found