UNPKG

@frui.ts/dataviews

Version:

View components for data display

15 lines (14 loc) 893 B
import type { IPagingFilter } from "@frui.ts/data"; import React from "react"; import type { ColumnDefinition, PropsWithColumns } from "../dataTypes"; export interface HeaderRowProps<TItem, TContext, TWrapper extends React.ElementType, TItemCell extends React.ElementType> extends PropsWithColumns<TItem, TContext> { pagingFilter?: IPagingFilter; onColumnSort?: (column: ColumnDefinition<TItem, TContext>) => any; wrapperType?: TWrapper; wrapperProps?: React.ComponentPropsWithoutRef<TWrapper>; itemCellType?: TItemCell; itemCellProps?: React.ComponentPropsWithoutRef<TItemCell>; } declare function repeaterHeader<TItem, TContext, TWrapper extends React.ElementType, TItemCell extends React.ElementType>(props: HeaderRowProps<TItem, TContext, TWrapper, TItemCell>): React.JSX.Element; declare const RepeaterHeader: typeof repeaterHeader; export default RepeaterHeader;