2021-06-04 20:49:01 +03:00
|
|
|
<!--
|
|
|
|
|
|
2023-01-31 10:43:56 +02:00
|
|
|
Copyright © 2016-2023 The Thingsboard Authors
|
2021-06-04 20:49:01 +03:00
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
|
limitations under the License.
|
|
|
|
|
|
|
|
|
|
-->
|
|
|
|
|
<button mat-icon-button
|
2021-06-11 13:37:23 +03:00
|
|
|
type="button"
|
2023-05-03 15:59:31 +03:00
|
|
|
[ngClass]="{'mini-button': miniButton}"
|
2021-06-11 13:37:23 +03:00
|
|
|
[color]="color"
|
2021-06-04 20:49:01 +03:00
|
|
|
[disabled]="disabled"
|
|
|
|
|
[matTooltip]="matTooltipText"
|
|
|
|
|
[matTooltipPosition]="matTooltipPosition"
|
|
|
|
|
(click)="copy($event)">
|
2023-11-30 17:55:41 +02:00
|
|
|
<tb-icon [ngStyle]="style" *ngIf="!copied; else copiedTemplate">
|
2023-12-01 16:05:43 +02:00
|
|
|
{{ icon || mdiIcon }}
|
2023-11-30 17:55:41 +02:00
|
|
|
</tb-icon>
|
2021-06-11 13:37:23 +03:00
|
|
|
<ng-template #copiedTemplate>
|
|
|
|
|
<mat-icon [ngStyle]="style" class="copied">done</mat-icon>
|
|
|
|
|
</ng-template>
|
2021-06-04 20:49:01 +03:00
|
|
|
</button>
|