set highlighted(val) {
    const trueVal = IdsStringUtils.stringToBool(val);

    // Don't highlight if the item is disabled.
    if (trueVal && this.disabled) {
      return;
    }
    // If the item's submenu is open, don't unhighlight.
    if (!trueVal && this.hasSubmenu && !this.submenu.hidden) {
      return;
    }

    this.state.highlighted = trueVal;
    this.container.classList[trueVal ? 'add' : 'remove']('highlighted');
  }
/**
   * @param {boolean} val true if the menu item should appear highlighted
   */
@param {boolean} val true if the menu item should appear highlighted
@param { boolean } val true if the menu item should appear highlighted
set highlighted(val) {
    const trueVal = IdsStringUtils.stringToBool(val);
    if (trueVal && this.disabled) {
      return;
    }
    if (!trueVal && this.hasSubmenu && !this.submenu.hidden) {
      return;
    }
    this.state.highlighted = trueVal;
    this.container.classList[trueVal ? 'add' : 'remove']('highlighted');
  }
set highlighted ( val ) { const trueVal = IdsStringUtils . stringToBool ( val ) ; if ( trueVal && this . disabled ) { return ; } if ( ! trueVal && this . hasSubmenu && ! this . submenu . hidden ) { return ; } this . state . highlighted = trueVal ; this . container . classList [ trueVal ? 'add' : 'remove' ] ( 'highlighted' ) ; }
@param {boolean} val true if the menu item should appear highlighted
@param { boolean } val true if the menu item should appear highlighted
// Don't highlight if the item is disabled. // If the item's submenu is open, don't unhighlight.