UNPKG

@ackplus/react-tanstack-data-table

Version:

A powerful React data table component built with MUI and TanStack Table

17 lines 768 B
/** * Column utilities for DataTable components */ import { Column, ColumnDef } from "@tanstack/react-table"; export type ColumnType = 'text' | 'number' | 'date' | 'boolean' | 'select' | 'actions'; /** * Get the type of a column from its metadata */ export declare function getColumnType(column: Column<any, unknown>): ColumnType; export declare function getCustomFilterComponent(column: Column<any, unknown>): any; export declare function getColumnOptions(column: Column<any, unknown>): any[]; export declare function withIdsDeep<T>(cols: ColumnDef<T, any>[]): ColumnDef<T, any>[]; /** * Determine if a column should be filterable */ export declare function isColumnFilterable(column: Column<any, unknown>): boolean; //# sourceMappingURL=column-helpers.d.ts.map