UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

33 lines (32 loc) 1.07 kB
import * as React from 'react'; import { AdaptableColumnDataType, AdaptableModule, BooleanFunctionName } from '../../../types'; interface QueryBuilderProps { query: string; getColumns: (type?: AdaptableColumnDataType) => { label?: string; value: string; type: AdaptableColumnDataType; }[]; getFields: (type?: AdaptableColumnDataType) => { label?: string; value: string; type: AdaptableColumnDataType; }[]; onChange: (query: string) => void; module: AdaptableModule; } export declare function useQueryBuilderContext(): { getColumns: (type?: AdaptableColumnDataType) => { label?: string; value: string; type: AdaptableColumnDataType; }[]; getFields: (type?: AdaptableColumnDataType) => { label?: string; value: string; type: AdaptableColumnDataType; }[]; getExpressions: (columnType: AdaptableColumnDataType) => BooleanFunctionName[]; }; export declare const QueryBuilder: React.FunctionComponent<QueryBuilderProps>; export {};