You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to be able to have a modal pop up when a marker on a chart is clicked, and be able to customize the contents of the modal based on the marker data.
I'm able to capture the event when the marker is clicked, but it isn't clear to me how to generate the modal, dynamically initialize the content, and show it. For a DOM element like a button, you can have a data-toggle='modal' and a data-target='#myModal' attribute. Can you do something like that with a marker?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to be able to have a modal pop up when a marker on a chart is clicked, and be able to customize the contents of the modal based on the marker data.
I'm able to capture the event when the marker is clicked, but it isn't clear to me how to generate the modal, dynamically initialize the content, and show it. For a DOM element like a button, you can have a
data-toggle='modal'
and adata-target='#myModal'
attribute. Can you do something like that with a marker?Beta Was this translation helpful? Give feedback.
All reactions