summaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html
diff options
context:
space:
mode:
authorIttay Stern <ittay.stern@att.com>2020-01-09 13:53:34 +0000
committerGerrit Code Review <gerrit@onap.org>2020-01-09 13:53:34 +0000
commit2d701e93373c70e33c2f797d7b2c177cfe96bc2e (patch)
tree6e8d92931eb5edab44f28ba5daa305b8886b9a62 /vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html
parent2e0d6b1a8fe5fdeef16c90e438c9df425f40b855 (diff)
parent4ef3ee778fc944cdfe28146d4eed360ce096e5ee (diff)
Merge "Upgrade to Angular 8"
Diffstat (limited to 'vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html')
-rw-r--r--vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html16
1 files changed, 16 insertions, 0 deletions
diff --git a/vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html b/vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html
new file mode 100644
index 000000000..753a3923b
--- /dev/null
+++ b/vid-webpack-master/src/app/shared/components/customButton/custom-button.component.html
@@ -0,0 +1,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>