Skip to content

Commit

Permalink
Wrong example signature (#3686)
Browse files Browse the repository at this point in the history
Callback should follow the `_{node-id}_{event}`, but example uses a double underscore (which is not working)

Co-authored-by: Philipp Rudiger <prudiger@anaconda.com>
  • Loading branch information
keul and philippjfr authored Jul 21, 2022
1 parent 8fac0a5 commit ff39f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/user_guide/Custom_Components.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@
" _dom_events = {'input': ['change']}\n",
"```\n",
"\n",
"Once subscribed the class may also define a method following the `_{node-id}_{event}` naming convention which will fire when the DOM event triggers, e.g. we could define a `__custom_id_change` method. Any such callback will be given a `DOMEvent` object as the first and only argument.\n",
"Once subscribed the class may also define a method following the `_{node-id}_{event}` naming convention which will fire when the DOM event triggers, e.g. we could define a `_custom_id_change` method. Any such callback will be given a `DOMEvent` object as the first and only argument.\n",
"\n",
"The `DOMEvent` contains information about the event on the `.data` attribute, like declaring the type of event on `.data.type`."
]
Expand Down

0 comments on commit ff39f02

Please sign in to comment.