aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html
blob: 753a3923b9807348dea69296251f20a14ef30eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<div>
  <button class="custom-button sdc-button__{{ type }} btn-{{ size }} {{ iconPositionClass }}"
          [disabled]="disabled || show_spinner"
          [attr.data-tests-id]="testId">
    <svg-icon
      *ngIf="icon_name"
      [name]="icon_name"
      [mode]="icon_mode"
      [size]="'medium'"
    >
    </svg-icon>
    {{text}}
  </button>
  <svg-icon *ngIf="show_spinner" name="spinner" [size]="'medium'" class="sdc-button__spinner"
            [ngClass]="{left: spinner_position === placement.right}"></svg-icon>
</div>