2022-09-19 18:21:31 +02:00
|
|
|
<ng-template [ngIf]="button" [ngIfElse]="btnLink">
|
2024-11-12 16:59:47 +01:00
|
|
|
<button [class]="class" type="button" [disabled]="text === ''" style="box-shadow: none;" (click)="copyText()">
|
|
|
|
|
<span style="position: relative;top: -2px;left: 1px;">
|
2024-06-15 20:52:46 +00:00
|
|
|
<app-svg-images name="clippy" [width]="widths[size]" viewBox="0 0 1000 1000"></app-svg-images>
|
2024-11-12 16:59:47 +01:00
|
|
|
<span *ngIf="showMessage" class="copied-message" style="top: 29px; left: -23.5px;">{{ copiedMessage }}</span>
|
2022-09-19 18:21:31 +02:00
|
|
|
</span>
|
2020-02-16 22:15:07 +07:00
|
|
|
</button>
|
2022-09-19 18:21:31 +02:00
|
|
|
</ng-template>
|
|
|
|
|
|
|
|
|
|
<ng-template #btnLink>
|
2024-11-12 16:59:47 +01:00
|
|
|
<span style="position: relative;">
|
|
|
|
|
<button class="btn btn-sm btn-link pt-0 {{ leftPadding ? 'padding' : '' }}" style="box-shadow: none;" (click)="copyText()">
|
2024-06-15 20:52:46 +00:00
|
|
|
<app-svg-images name="clippy" [width]="widths[size]" viewBox="0 0 1000 1000"></app-svg-images>
|
2022-09-19 18:21:31 +02:00
|
|
|
</button>
|
2024-11-12 16:59:47 +01:00
|
|
|
<span *ngIf="showMessage" class="copied-message" style="top: 29px; left: -23.5px;">{{ copiedMessage }}</span>
|
2022-09-19 18:21:31 +02:00
|
|
|
</span>
|
|
|
|
|
</ng-template>
|