Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

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');
Comment

PREVIOUS NEXT
Code Example
Javascript :: react native metro api level 30 
Javascript :: stop next script when ajaxcall 
Javascript :: how to set content length of an mp3 stream in nodejs 
Javascript :: node redisjson remove path 
Javascript :: monitor changes made to object 
Javascript :: vue electron min width 
Javascript :: native base expo web eror 
Javascript :: js touchmove get client position 
Javascript :: date format in ngx-csv package in angular 
Javascript :: make button disabled 
Javascript :: convert text to binary javascript 
Javascript :: square every digit javascript 
Javascript :: linebreak eslint 
Javascript :: log arguments in javascript 
Javascript :: nextjs check path in page 
Javascript :: javascript select option value onchange 
Javascript :: ^(?:(+|00)d{1,3}[-s.])?(()?d{3,10}())?(?:[-s.)]d{2,7}([-s.]d{2,5})?([-s.]d{2})?)?$ 
Javascript :: probability density function javascript 
Javascript :: react native memo styles 
Javascript :: remove floating point javascript 
Javascript :: setrequestheader authorization bearer 
Javascript :: javascript encode url to decode C# 
Javascript :: vue get height of element ref 
Javascript :: how to dynamically show image from local storage in react native 
Javascript :: run a nodejs file infinite loop 
Javascript :: enable input jquery 
Javascript :: change value rateit.js using jquery 
Javascript :: js check if number is divisible by 2 
Javascript :: protractor screen size 
Javascript :: how to do regex email validation with domain 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =