aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/buttons/button-file-opener.component.html.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/angular/buttons/button-file-opener.component.html.ts')
-rw-r--r--src/angular/buttons/button-file-opener.component.html.ts18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/angular/buttons/button-file-opener.component.html.ts b/src/angular/buttons/button-file-opener.component.html.ts
new file mode 100644
index 0000000..dd24be3
--- /dev/null
+++ b/src/angular/buttons/button-file-opener.component.html.ts
@@ -0,0 +1,18 @@
+export const template = `
+<div (click)="fileOpener.click()"
+ class="sdc-button sdc-button__{{ type }} btn-{{ size }} {{ iconPositionClass }}"
+ [attr.data-tests-id]="testId"
+ >
+ {{ text }}
+ <input
+ #fileOpener
+ type="file"
+ [accept]="allowedExtensions"
+ [disabled] = "disabled"
+ (change)="onFileSelect($event)"
+ base-sixty-four-input
+ />
+</div>
+`;
+
+// base-sixty-four-input