samples/without-shell-navigation/helpers.js
// Deselect current selected side navigation entry (0 or 1)
Deselect current selected side navigation entry (0 or 1)
Deselect current selected side navigation entry ( 0 or 1 )
function deselectAllSideNavEntries() {
  const SIDE_NAV = document.getElementById('side-nav');
  const SELECTED_ENTRIES = SIDE_NAV.getElementsByClassName('is-selected');
  for (i = 0; i < SELECTED_ENTRIES.length; i++) {
    SELECTED_ENTRIES[i].classList.remove('is-selected');
  }
}
function deselectAllSideNavEntries ( ) { const SIDE_NAV = document . getElementById ( 'side-nav' ) ; const SELECTED_ENTRIES = SIDE_NAV . getElementsByClassName ( 'is-selected' ) ; for ( i = 0 ; i < SELECTED_ENTRIES . length ; i ++ ) { SELECTED_ENTRIES [ i ] . classList . remove ( 'is-selected' ) ; } }
Deselect current selected side navigation entry (0 or 1)
Deselect current selected side navigation entry ( 0 or 1 )