Add docstring to `on_event` (#10672)
Add docstring to `on_event` (#10672)

* Add docstring to `on_event`

* Format docstring to spec

* Remove trailing whitespace
bokeh/bokeh,bokeh/bokeh,bokeh/bokeh,bokeh/bokeh,bokeh/bokeh