aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/buttons/button-file-opener.component.html.ts
blob: dd24be3a933d1f15c7583b7a620d8c3f44a74907 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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