clr-display.component.html 580 B

123456789101112131415161718
  1. <clr-input-container *ngIf="!link; else fieldWithLink">
  2. <label>{{ label }}</label>
  3. <input clrInput type="text" [formControl]="control" spellcheck="false" disabled>
  4. </clr-input-container>
  5. <ng-template #fieldWithLink>
  6. <clr-input-container>
  7. <label>{{ label }}</label>
  8. <input clrInput type="text" [formControl]="control" spellcheck="false" disabled>
  9. <div class="input-group-append">
  10. <button class="btn btn-outline" type="button" [routerLink]="[ link.route, control.value ]">
  11. {{ link.label || 'Details' }}
  12. </button>
  13. </div>
  14. </clr-input-container>
  15. </ng-template>