core/user/user-menu-item.component.ts
selector | c8y-user-menu-item |
templateUrl | ./user-menu-item.component.html |
Properties |
Methods |
Inputs |
Outputs |
constructor(userService: UserMenuService)
|
||||||
Parameters :
|
icon |
Type : string
|
label |
Type : string
|
link |
Type : string
|
priority |
Type : number
|
Default value : 0
|
target |
Type : string
|
click |
Type : EventEmitter
|
ngAfterViewInit |
ngAfterViewInit()
|
Returns :
void
|
ngOnDestroy |
ngOnDestroy()
|
Returns :
void
|
onClick |
onClick()
|
Returns :
void
|
template |
Type : any
|
Decorators :
@ViewChild('template', {static: false})
|
<ng-template #template>
<li (click)="onClick()">
<a class="interact" [attr.href]="link" [attr.target]="target">
<i [c8yIcon]="icon"></i>
{{ label | translate }}
<ng-content></ng-content>
</a>
</li>
</ng-template>