INIT
This commit is contained in:
19
assets/js/ui-navbar.js
Normal file
19
assets/js/ui-navbar.js
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* UI Navbar
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
(function () {
|
||||
// If layout is RTL add .dropdown-menu-end class to .dropdown-menu
|
||||
if (isRtl) {
|
||||
Helpers._addClass('dropdown-menu-end', document.querySelectorAll('.dropdown-menu'));
|
||||
}
|
||||
|
||||
// Mega dropdown
|
||||
const megaDropdown = document.querySelectorAll('.nav-link.mega-dropdown');
|
||||
if (megaDropdown) {
|
||||
megaDropdown.forEach(e => {
|
||||
new MegaDropdown(e);
|
||||
});
|
||||
}
|
||||
})();
|
||||
Reference in New Issue
Block a user