@vime/angular
Version:
Angular bindings for the Vime media player.
17 lines (16 loc) • 877 B
TypeScript
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 Control extends Components.VmControl {
}
export declare class Control {
protected z: NgZone;
protected el: HTMLElement;
/** Emitted when the user is interacting with the control by focusing, touching or hovering on it. */
vmInteractionChange: Emitter<JSX.VmControl["onVmInteractionChange"]>;
/** Emitted when the control receives focus. */
vmFocus: Emitter<JSX.VmControl["onVmFocus"]>;
/** Emitted when the control loses focus. */
vmBlur: Emitter<JSX.VmControl["onVmBlur"]>;
constructor(c: ChangeDetectorRef, r: ElementRef, z: NgZone);
}