samples/without-shell-navigation/helpers.js
// Open sub menu from a side navigation entry
Open sub menu from a side navigation entry
Open sub menu from a side navigation entry
function openSubMenu(subMenuId, buttonId) {
  document.getElementById(subMenuId).setAttribute('aria-hidden', 'false');
  const BUTTON = document.getElementById(buttonId);
  BUTTON.setAttribute('aria-expanded', 'true');
  BUTTON.querySelector('i[role]').setAttribute('class', 'sap-icon--navigation-down-arrow');
}
function openSubMenu ( subMenuId , buttonId ) { document . getElementById ( subMenuId ) . setAttribute ( 'aria-hidden' , 'false' ) ; const BUTTON = document . getElementById ( buttonId ) ; BUTTON . setAttribute ( 'aria-expanded' , 'true' ) ; BUTTON . querySelector ( 'i[role]' ) . setAttribute ( 'class' , 'sap-icon--navigation-down-arrow' ) ; }
Open sub menu from a side navigation entry
Open sub menu from a side navigation entry