Is it possible to run an onclick javascript function in a handlebars chart? #27431
Unanswered
jseparovic
asked this question in
Q&A / Help
Replies: 2 comments 2 replies
-
Hi, Didn't you find any solution for that? Had you look at the https://react.dev/reference/react-dom/components/common#mouseevent-handler - any success? I'm stuck with that... Thanx |
Beta Was this translation helpful? Give feedback.
0 replies
-
Currently, no, since that poses a variety of security risks. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Is it possible to use an onclick javascript function in the handlebars chart?
I'd like my dashboard to be able to trigger an external REST API through a button click on my handlebars chart.
When I try this out I get react error:
https://react.dev/errors/231?invariant=231&args%5B%5D=onClick&args%5B%5D=string
Expected
onClick
listener to be a function, instead got a value ofstring
type.Cheers,
Jason
Beta Was this translation helpful? Give feedback.
All reactions