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 : any
|
contextPath |
Type : string
|
name |
Type : string
|
Default value : ''
|
ngOnInit |
ngOnInit()
|
Returns :
void
|
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>