core/header/application/app-icon.component.ts
| host | { |
| selector | c8y-app-icon |
| templateUrl | ./app-icon.component.html |
Properties |
Methods |
Inputs |
constructor(options: OptionsService)
|
||||||
|
Parameters :
|
app
|
Type : |
contextPath
|
Type : |
name
|
Type :
Default value : |
| ngOnInit |
ngOnInit()
|
|
Returns :
void
|
| model |
model:
|
Type : object
|
Default value : {
appIcon: '',
showIcon: true,
iconClass: ['c8y-icon'],
appNameAbbr: '',
iconStyle: {}
}
|
<i *ngIf="model.showIcon" [ngClass]="model.iconClass" [ngStyle]="model.iconStyle"></i>
<span *ngIf="!model.showIcon" class="app-noicon"> {{model.appNameAbbr}}</span>