activate treeview menu in adminlte 3 0 2 treeview menu open

Solutions on MaxInterview for activate treeview menu in adminlte 3 0 2 treeview menu open by the best coders in the world

showing results for - "activate treeview menu in adminlte 3 0 2 treeview menu open"
Eleonora
20 Jan 2020
1/** add active class and stay opened when selected */
2  var url = window.location;
3
4// for sidebar menu entirely but not cover treeview
5  $('ul.nav-sidebar a').filter(function() {
6    return this.href == url;
7  }).addClass('active');
8
9// for treeview
10  $('ul.nav-treeview a').filter(function() {
11    return this.href == url;
12  }).parentsUntil(".nav-sidebar > .nav-treeview").addClass('menu-open').prev('a').addClass('active');
similar questions