UNPKG

@vime/angular

Version:

Angular bindings for the Vime media player.

15 lines (14 loc) 738 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 Submenu extends Components.VmSubmenu { } export declare class Submenu { protected z: NgZone; protected el: HTMLElement; /** Emitted when the submenu is open/active. */ vmOpenSubmenu: Emitter<JSX.VmSubmenu["onVmOpenSubmenu"]>; /** Emitted when the submenu has closed/is not active. */ vmCloseSubmenu: Emitter<JSX.VmSubmenu["onVmCloseSubmenu"]>; constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone); }