File

core/user/user-menu-item.component.ts

Implements

UserMenuItem

Metadata

selector c8y-user-menu-item
templateUrl ./user-menu-item.component.html

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(userService: UserMenuService)
Parameters :
Name Type Optional
userService UserMenuService No

Inputs

icon

Type : string

label

Type : string

link

Type : string

priority

Default value : 0

target

Type : string

Outputs

click $event Type: EventEmitter

Methods

ngAfterViewInit
ngAfterViewInit()
Returns : void
ngOnDestroy
ngOnDestroy()
Returns : void
onClick
onClick()
Returns : void

Properties

template
template: any
Type : any
Decorators :
@ViewChild('template', {static: undefined})
<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>

result-matching ""

    No results matching ""