@gpa-gemstone/react-table
Version:
Table for GPA web applications
27 lines (26 loc) • 858 B
TypeScript
import { Search } from '@gpa-gemstone/react-interactive';
/**
* Interface defining the properties expected by the BooleanFilter component.
*/
interface IFilterProps<T> {
/**
* Function to set the filter based on Search.IFilter<T> array.
* @param evt - Event handler that updates the filter.
*/
SetFilter: (evt: Search.IFilter<T>[]) => void;
/**
* Array of filters of type Search.IFilter<T>.
*/
Filter: Search.IFilter<T>[];
/**
* Name of the field for filtering.
*/
FieldName: string;
}
/**
* Component to handle boolean filtering based on provided filter props.
* @param {IFilterProps<T>} props - Props passed to the BooleanFilter component.
* @returns JSX element representing the BooleanFilter component.
*/
export declare function BooleanFilter<T>(props: IFilterProps<T>): JSX.Element;
export {};