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.

40 lines (39 loc) 885 B
import { Question } from "survey-core"; import { Table } from "./table"; export declare enum QuestionLocation { Column = 0, Row = 1 } export declare enum ColumnDataType { Text = 0, FileLink = 1, Image = 2 } export interface ICellData { question: Question; displayValue: any; } export interface IColumnData { name: string; displayName: string; dataType: ColumnDataType; isVisible: boolean; isPublic: boolean; location: QuestionLocation; width?: string | number; isComment?: boolean; } export interface IColumn extends IColumnData { visibleIndex?: number; fromJSON(json: any): void; getCellData(table: Table, data: any): ICellData; } export interface ITableState { locale?: string; elements?: IColumnData[]; pageSize?: number; } export interface IPermission { name: string; isPublic: boolean; }