@gpa-gemstone/react-table
Version:
Table for GPA web applications
21 lines (20 loc) • 795 B
TypeScript
import * as ReactTableProps from './Types';
import * as React from 'react';
import { Search } from '@gpa-gemstone/react-interactive';
import { IUnit } from '../Filters/NumberFilter';
/**
* Wrapper to make any column configurable
*/
export default function FilterableColumn<T>(props: React.PropsWithChildren<ReactTableProps.IFilterableCollumn<T>>): JSX.Element;
export interface IHeaderProps<T> {
Label: string | React.ReactNode;
Type?: Search.FieldType;
Unit?: IUnit[];
Filter: Search.IFilter<T>[];
SetFilter: (flt: Search.IFilter<T>[]) => void;
Field: string | number | symbol | undefined;
Options?: ReactTableProps.IOptions[];
ExpandedLabel?: string;
Guid: string;
}
export declare function FilterableColumnHeader<T>(props: IHeaderProps<T>): JSX.Element;