@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
27 lines (26 loc) • 1.04 kB
TypeScript
import * as React from 'react';
import { AdaptableApi, AdaptableColumn, AdaptableField, AdaptableModule, ColumnScope, NamedQuery } from '../../types';
export type ExpressionEditorType = 'boolean' | 'scalar' | 'observable' | 'aggregatedBoolean' | 'aggregatedScalar' | 'cumulativeAggregatedScalar' | 'quantileAggregatedScalar';
interface ExpressionEditorProps {
value: string;
onChange: (value: string) => void;
type: ExpressionEditorType;
module: AdaptableModule;
initialData: {
[key: string]: any;
};
columns: AdaptableColumn[];
fields?: AdaptableField[];
namedQueries: NamedQuery[];
allowSaveNamedQuery?: boolean;
style?: React.CSSProperties;
className?: string;
isFullExpression?: boolean;
api: AdaptableApi;
showQueryBuilder?: boolean;
showExpressionEditor?: boolean;
columnScope?: ColumnScope;
}
export declare const baseClassName = "ab-ExpressionEditor";
export declare function ExpressionEditor(props: ExpressionEditorProps): React.JSX.Element;
export {};