UNPKG

survey-analytics

Version:

SurveyJS Dashboard is a UI component for visualizing and analyzing survey data. It interprets the form JSON schema to identify question types and renders collected responses using interactive charts and tables.

42 lines (41 loc) 1.47 kB
/** * A base class used to implement custom layout engines or integrate third-party layout engines with SurveyJS Dashboard. */ export declare class LayoutEngine { protected _allowed: boolean; constructor(_allowed: boolean); protected startCore(container: HTMLElement): void; protected stopCore(): void; protected updateCore(): void; get allowed(): boolean; /** * Enables the dynamic layout in a given HTML element. * * This method should arrange visualization items based on the available screen space and allow users to reorder them via drag and drop. */ start(container: HTMLElement): void; /** * Disables the dynamic layout. */ stop(): void; /** * Updates the dynamic layout. */ update(): void; add(elements: Array<HTMLElement>, options?: any): void; remove(elements: Array<HTMLElement>, options?: any): void; onMoveCallback: (order: Array<string>) => void; destroy(): void; } export declare class MuuriLayoutEngine extends LayoutEngine { private _selector; private dragEnabled; private _muuri; private _layoutingTimer; constructor(allowed: boolean, _selector: string, dragEnabled?: boolean); protected startCore(container: HTMLElement): void; protected stopCore(): void; protected updateCore(): void; add(elements: Array<HTMLElement>, options?: any): void; remove(elements: Array<HTMLElement>, options?: any): void; }