import { AdaptableForm, AdaptableObject } from '../../types'; import { FormContext } from '../AdaptableState/Common/FormContext'; /** * Options to provide Data Sets */ export interface DataSetOptions { /** * Collection of Data Sets to provide data to AdapTable */ dataSets?: DataSet[]; } /** * Defines a Data Set object that can provide data to AdapTable */ export interface DataSet extends AdaptableObject { /** * Name of Data Set */ name: string; /** * Describes the Data Set */ description: string; /** * Params for Data Set popup form */ form?: AdaptableForm; /** * Additional info for Data Set */ info?: Record; } /** * Used when a DataSet displays a Form */ export interface DataSetFormContext extends FormContext { /** * The DataSet which triggered the Form */ dataSet: DataSet; }