src/components/navigation-component.js
/**
   * Make a call to <code>onNavButtonPress(buttonId)</code> (if available) whenever a button is
   * pressed in the navigation bar.  This is called automatically whenever an event
   * is fired by the OnNavButtonClickEventListener.
   *
   * If a subclassed instance contains the <code>onNavButtonPress</code> method, that will be
   * called, otherwise the class's static method will be called.
   *
   * @private
   * @param {string} buttonId - The ID of the {@link Button} that was pressed.
   */
Make a call to onNavButtonPress(buttonId) (if available) whenever a button is
pressed in the navigation bar.  This is called automatically whenever an event
is fired by the OnNavButtonClickEventListener.

If a subclassed instance contains the onNavButtonPress method, that will be
called, otherwise the class's static method will be called.

@private
@param {string} buttonId - The ID of the  Button that was pressed.
Make a call to onNavButtonPress ( buttonId ) ( if available ) whenever a button is pressed in the navigation bar . This is called automatically whenever an event is fired by the OnNavButtonClickEventListener . If a subclassed instance contains the onNavButtonPress method that will be called otherwise the class ' s static method will be called . @private @param { string } buttonId - The ID of the Button that was pressed .
static _handleNavButtonPress (buttonId) {
    if (this.constructor._shouldDispatchButtonPressEvent(buttonId)) {
      const handler = this.onNavButtonPress || this.constructor.onNavButtonPress
      if (handler) {
        handler.bind(this)(this.constructor._unlocalizeButtonId(buttonId))
      }
    }
  }
static _handleNavButtonPress ( buttonId ) { if ( this . constructor . _shouldDispatchButtonPressEvent ( buttonId ) ) { const handler = this . onNavButtonPress || this . constructor . onNavButtonPress if ( handler ) { handler . bind ( this ) ( this . constructor . _unlocalizeButtonId ( buttonId ) ) } } }
Make a call to <code>onNavButtonPress(buttonId)</code> (if available) whenever a button is
 pressed in the navigation bar.
Make a call to <code > onNavButtonPress ( buttonId ) < / code > ( if available ) whenever a button is pressed in the navigation bar .