Skip to content

Commit

Permalink
fix(events): Properly match event names
Browse files Browse the repository at this point in the history
  • Loading branch information
jourdain committed Sep 15, 2023
1 parent f6dd454 commit e6e61ef
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions trame_plotly/widgets/plotly.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,33 +101,33 @@ def __init__(self, figure=None, state_variable_name=None, **kwargs):
("double_click_delay", "doubleClickDelay"),
]
self._event_names += [
("after_export", "afterexport"),
("after_plot", "afterplot"),
("animated", "animated"),
("animating_frame", "animatingframe"),
("animation_interrupted", "animationinterrupted"),
("auto_size", "autosize"),
("before_export", "beforeexport"),
("button_clicked", "buttonclicked"),
("click", "click"),
("click_annotation", "clickannotation"),
("deselect", "deselect"),
("double_click", "doubleclick"),
("framework", "framework"),
("hover", "hover"),
("legend_click", "legendclick"),
("legend_double_click", "legenddoubleclick"),
("relayout", "relayout"),
("restyle", "restyle"),
("redraw", "redraw"),
("selected", "selected"),
("selecting", "selecting"),
("slider_change", "sliderchange"),
("slider_end", "sliderend"),
("slider_start", "sliderstart"),
("transitioning", "transitioning"),
("transition_interrupted", "transitioninterrupted"),
("unhover", "unhover"),
("after_export", "AfterExport"),
("after_plot", "AfterPlot"),
("animated", "Animated"),
("animating_frame", "AnimatingFrame"),
("animation_interrupted", "AnimationInterrupted"),
("auto_size", "AutoSize"),
("before_export", "BeforeExport"),
("button_clicked", "ButtonClicked"),
("click", "Click"),
("click_annotation", "ClickAnnotation"),
("deselect", "Deselect"),
("double_click", "DoubleClick"),
("framework", "Framework"),
("hover", "Hover"),
("legend_click", "LegendClick"),
("legend_double_click", "LegendDoubleClick"),
("relayout", "Relayout"),
("restyle", "Restyle"),
("redraw", "Redraw"),
("selected", "Selected"),
("selecting", "Selecting"),
("slider_change", "SliderChange"),
("slider_end", "SliderEnd"),
("slider_start", "SliderStart"),
("transitioning", "Transitioning"),
("transition_interrupted", "TransitionInterrupted"),
("unhover", "Unhover"),
]
self.update()

Expand Down

0 comments on commit e6e61ef

Please sign in to comment.