UNPKG

@vime/angular

Version:

Angular bindings for the Vime media player.

15 lines (14 loc) 692 B
import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone } from '@angular/core'; import type { JSX, Components } from '@vime/core/dist/types'; export declare type Emitter<T extends ((...args: any[]) => any) | undefined> = EventEmitter<Parameters<Exclude<T, undefined>>[0]>; export declare interface MenuItem extends Components.VmMenuItem { } export declare class MenuItem { protected z: NgZone; protected el: HTMLElement; /** Emitted when the item is focused. */ vmFocus: Emitter<JSX.VmMenuItem["onVmFocus"]>; /** Emitted when the item loses focus. */ vmBlur: Emitter<JSX.VmMenuItem["onVmBlur"]>; constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone); }