UNPKG

@nova-ui/dashboards

Version:

Nova Dashboards is a framework designed to provide feature developers with a common solution for presenting data coming from various sources within a single view, as well as a set of predefined widget visualizations that are 100% configuration-driven and

18 lines (17 loc) 724 B
import { EventBus, IEvent } from "@nova-ui/bits"; import { IConfigurable, IProperties } from "../../../types"; export interface IInteractionPayload<T> { interactionType?: string; data: T; } export interface IInteractionHandlerProperties extends IProperties { interactionType?: string; } export declare abstract class InteractionHandler<T extends IInteractionHandlerProperties, P> implements IConfigurable { protected readonly eventBus: EventBus<IEvent>; protected properties: T; constructor(eventBus: EventBus<IEvent>); updateConfiguration(properties: T): void; protected initializeSubscriptions(): void; protected abstract handleInteraction(interaction: IInteractionPayload<P>): void; }