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 haven't seen an api that can be used after the popover visible.
I want to add some doms and add addEventListenr on them, but when step changed, it will be losing efficacy
The text was updated successfully, but these errors were encountered:
yokiizx
changed the title
How can I
How can I do something on the popover
Dec 7, 2022
You can specify an event listener for onHighlighted. It will be called after the focused Element is highlighted and the popover shown.
Do you plan to manipulate the highlighted element or the popover or some unrelated element?
Keep in mind that if you manipulate the DOM and change the layout you will need to call driver.refresh() to reposition the stage and popover.
If you addEventListener in onHighlighted you should also removeEventlistener that listener in the onDeselected handler.
We just released v1.0 of driver.js which has been rewritten from the ground up. It gives you more control over the popup DOM using onPopoverRender hook. Please have a look at the docs and do let me know if you face any issues.
I haven't seen an api that can be used after the popover visible.
I want to add some doms and add
addEventListenr
on them, but when step changed, it will be losing efficacyThe text was updated successfully, but these errors were encountered: