JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › General Discussions › smart-accordion selection-mode=’mouseenter’
Hi,
I was looking at smart-accordion for selection-mode='mouseenter' but couldn’t find it. Mmenu and tabs have it though.
smart-accordion
selection-mode='mouseenter'
How can this behaviour be achieved?
Thank you.
You can set an event listener that catches the ‘mouseenter’ event of the ‘smart-accordion-item’. In the handler get the index of the item and invoke the ‘expand’ method of the ‘smart-accordion’.
Here is an example: https://codepen.io/svetoslavb04/pen/mdjRoKr
I hope this helps you!
Best Regards, Svetoslav Borislavov
Smart UI Team https://www.htmlelements.com/
Thanks Svetoslav – resolved.
Thank you for the feedback!
If you face any further difficulties, do not hesitate to contact us!