core/application/app-icon.component.ts
OnInit
OnChanges
| host | { |
| selector | c8y-app-icon |
| standalone | true |
| imports |
IconDirective
NgStyle
NgIf
NgClass
|
| templateUrl | ./app-icon.component.html |
Properties |
Methods |
Inputs |
constructor(options: OptionsService)
|
||||||
|
Parameters :
|
| app |
Type : IApplication
|
|
Application managed object. |
| contextPath |
Type : string
|
|
Application context path. |
| name |
Type : string
|
Default value : ''
|
|
Application name. |
| ngOnChanges |
ngOnChanges()
|
|
Returns :
void
|
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| model |
Type : unknown
|
Default value : this.emptyModel()
|
<ng-container *ngIf="model.showIcon; else noIcon">
<i
[ngStyle]="model.iconStyle"
*ngIf="!model.configIcon"
[ngClass]="model.iconClass"
></i>
<i
[c8yIcon]="model.configIcon"
*ngIf="model.configIcon"
></i>
</ng-container>
<ng-template #noIcon>
<span class="app-noicon">{{ model.appNameAbbr }}</span>
</ng-template>