This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
onClick callback signature #260
Labels
Milestone
Comments
@kczx3 onClick callback is completely upto the consumer, we just accept a call back function and set it up as needed. You can refer to below example to get good view about callback function. https://github.com/cerner/terra-graphs/blob/main/packages/carbon-graphs/dev/examples/popup.js |
I think it would be a good idea to document the callback function signature including the types of each argument. |
If I had to guess, the last argument is actually a D3 Selection, not a "DOM object" as is mentioned here:
|
Yes, you can also see that in the method documentation. |
:) Would still be good to have on your published documentation site though rather than hidden in the source. |
UXPLATFORM-6606 was logged to track this internally. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Issue Description
Are the arguments passed to the onClick callback function documented anywhere? I can't seem to find it anywhere on the documentation site.
Additional Context / Screenshots
The text was updated successfully, but these errors were encountered: