File

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

Implements

UserMenuItem

Metadata

Index

Properties
Methods
Inputs
Outputs

Constructor

constructor(userService: UserMenuService, headerService: HeaderService)
Parameters :
Name Type Optional
userService UserMenuService No
headerService HeaderService 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

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

results matching ""

    No results matching ""