<!--
 Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file
 for details. All rights reserved. Use of this source code is governed by a
 BSD-style license that can be found in the LICENSE file.
-->
<material-button
    (trigger)="handleButtonClick()"
    [attr.aria-label]="ariaLabel"
    [attr.icon]="hasIcon"
    [disabled]="disabled"
    [materialTooltip]="tooltipText"
    [showTooltipIf]="hasTooltip"
    class="trigger-button"
    popupSource
    #toggle="popupSource">
  <material-icon
      *ngIf="menu.uiIcon != null"
      [icon]="menu.uiIcon">
  </material-icon>
  <span *ngIf="buttonText != null">{{buttonText}}</span>
</material-button>
<menu-popup
    *ngIf="hasSubmenu"
    [(isExpanded)]="isExpanded"
    [menu]="menu"
    [popupSource]="toggle"
    [preferredPositions]="preferredPositions"
    [width]="width">
  <ng-content></ng-content>
</menu-popup>

<!--
 Copyright (c) 2016, the Dart project authors.  Please see the AUTHORS file
 for details. All rights reserved. Use of this source code is governed by a
 BSD-style license that can be found in the LICENSE file.
-->
<material-button
    (trigger)="handleButtonClick()"
    [attr.aria-label]="ariaLabel"
    [attr.icon]="hasIcon"
    [disabled]="disabled"
    [materialTooltip]="tooltipText"
    [showTooltipIf]="hasTooltip"
    class="trigger-button"
    popupSource
    #toggle="popupSource">
  <material-icon
      *ngIf="menu.uiIcon != null"
      [icon]="menu.uiIcon">
  </material-icon>
  <span *ngIf="buttonText != null">{{buttonText}}</span>
  <ng-content select="[menu-button]"></ng-content>
</material-button>
<menu-popup
    *ngIf="hasSubmenu"
    [(isExpanded)]="isExpanded"
    [menu]="menu"
    [popupSource]="toggle"
    [preferredPositions]="preferredPositions"
    [width]="width">
  <ng-content></ng-content>
</menu-popup>

Make it possible to customize menu button content.
Make it possible to customize menu button content.

PiperOrigin-RevId: 182346419
