Answers for "activate treeview menu in adminlte 3.0.2 treeview-menu open"

1

activate treeview menu in adminlte 3.0.2 treeview-menu open

/** add active class and stay opened when selected */
  var url = window.location;

// for sidebar menu entirely but not cover treeview
  $('ul.nav-sidebar a').filter(function() {
    return this.href == url;
  }).addClass('active');

// for treeview
  $('ul.nav-treeview a').filter(function() {
    return this.href == url;
  }).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open').prev('a').addClass('active');
Posted by: Guest on September-09-2021

Code answers related to "activate treeview menu in adminlte 3.0.2 treeview-menu open"

Code answers related to "Javascript"

Browse Popular Code Answers by Language