summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html
blob: a50522a671f97abde8b7a71aacc0b28f21149693 (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">
    <custom-icon
      *ngIf="icon_name"
      [name]="icon_name"
      [mode]="icon_mode"
      [size]="'medium'"
    >
    </custom-icon>
    {{text}}
  </button>
  <custom-icon *ngIf="show_spinner" name="spinner" [size]="'medium'" class="sdc-button__spinner"
            [ngClass]="{left: spinner_position === placement.right}"></custom-icon>
</div>