e-virt-table
Version:
A powerful data table based on canvas. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
13 lines (12 loc) • 411 B
TypeScript
export type EventCallback = (...args: any[]) => void;
declare class EventBus {
private events;
constructor();
has(event: string): boolean;
on(event: string, callback: EventCallback): void;
once(event: string, callback: EventCallback): this;
off(event: string, callback: EventCallback): void;
emit(event: string, ...args: any[]): void;
destroy(): void;
}
export default EventBus;