File

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

Implements

UserMenuItem

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

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

Inputs

dataCy
Type : string
icon
Type : string
label
Type : string
link
Type : string
priority
Type : number
Default value : 0
target
Type : string

Outputs

click
Type : EventEmitter

Methods

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

Properties

template
Type : any
Decorators :
@ViewChild('template', {static: false})
<ng-template #template>
  <li >
    <a class="c8y-right-drawer__link" (click)="onClick()" [attr.data-cy]="dataCy" *ngIf="link" [attr.href]="link" [attr.target]="target">
      {{ label | translate }}
      <ng-content></ng-content>
    </a>
    <button *ngIf="!link" (click)="onClick()" [attr.data-cy]="dataCy" type="button" class="c8y-right-drawer__link">
      {{ label | translate }}
      <ng-content></ng-content>
    </button>
  </li>
</ng-template>

results matching ""

    No results matching ""