Topic: Tab show on hover
Hi
I am trying to get the tabs to show on hover.
I am using the javascript
const triggerTabList = [].slice.call(document.querySelectorAll('.tab-hover a'));
triggerTabList.forEach((triggerEl) => {
const tabTrigger = new Tab(triggerEl);
triggerEl.addEventListener('mouseover', (event) => {
event.preventDefault();
tabTrigger.show();
tabTrigger.classList.add('test');
});
});
Which is copied and edited from your API.
This is not working. I have been testing on a snippet here - https://mdbootstrap.com/snippets/standard/pyroweb/6261691
Kamila Pieńkowska staff answered 3 months ago
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- User: Free
- Premium support: No
- Technology: MDB Standard
- MDB Version: MDB5 8.0.0
- Device: All
- Browser: All
- OS: All
- Provided sample code: No
- Provided link: Yes