src/components/navigation-component.js
/**
   * Determine whether to dispatch an <code>onNavButtonPress</code> event for a given buttonId.
   *
   * @private
   * @param {string} buttonId - The ID of the {@link Button}.
   */
Determine whether to dispatch an onNavButtonPress event for a given buttonId.
@private
@param {string} buttonId - The ID of the  Button.
Determine whether to dispatch an onNavButtonPress event for a given buttonId . @private @param { string } buttonId - The ID of the Button .
static _shouldDispatchButtonPressEvent (buttonId) {
    const lastDot = buttonId.lastIndexOf('.')
    const buttonRoute = lastDot > -1 ? buttonId.substring(0, lastDot) : ''
    return buttonRoute === this.getRegisteredRoute()
  }
static _shouldDispatchButtonPressEvent ( buttonId ) { const lastDot = buttonId . lastIndexOf ( '.' ) const buttonRoute = lastDot > - 1 ? buttonId . substring ( 0 , lastDot ) : '' return buttonRoute === this . getRegisteredRoute ( ) }
Determine whether to dispatch an <code>onNavButtonPress</code> event for a given buttonId.
Determine whether to dispatch an <code > onNavButtonPress< / code > event for a given buttonId .