开发者

Fluent UI: Trigger mouse hover event to show the tooltip

开发者 https://www.devze.com 2022-12-07 21:52 出处:网络
I want to trigger the mouse hover event on TooltipHost component from Fluent UI with out moving the mouse over the button, so I can easily debug the tooltip.

I want to trigger the mouse hover event on TooltipHost component from Fluent UI with out moving the mouse over the button, so I can easily debug the tooltip.

<TooltipHost
  tooltipProps={{onRenderContent: () => <div>Hello</div>}}>
  <DefaultB开发者_开发百科utton text='Hover over me'/>
</TooltipHost>

I have a code pen example below: https://codepen.io/zhuch321/pen/QWxzPrZ

I tried many posted solutions, like $("#xxx").trigger('mouseover');. But, it doesn't work. Can I get some help to trigger the tooltip without moving the mouse over the button?

Thanks!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号