@coveord/plasma-mantine
Version:
A Plasma flavoured Mantine theme
31 lines • 1.41 kB
TypeScript
import { Table } from '@tanstack/react-table';
export interface TableColumnsSelectorOptions {
/**
* The maximum number of columns that can be selected at the same time.
* If defined a footer will render with the remaining number of columns that can be selected.
* Must be a positive integer (greater than 0).
*/
maxSelectableColumns?: number;
/**
* The content to display in the footer when maxSelectableColumns is defined.
* Can be a string or a function that receives the maxSelectableColumns value.
* @default (max) => `You can display up to ${max} columns.`
*/
footer?: string | ((maxSelectableColumns: number) => string);
/**
* The tooltip to display when the user hovers over a disabled checkbox because of the limit.
* @default 'You have reached the maximum display limit.'
*/
limitReachedTooltip?: string;
/**
* The tooltip to display when the user hovers over a disabled checkbox because a column cannot be hidden.
* @default 'This column is always visible.'
*/
alwaysVisibleTooltip?: string;
}
export interface TableColumnsSelectorProps {
table: Table<unknown>;
options?: TableColumnsSelectorOptions;
}
export declare const TableColumnsSelector: ({ table, options }: TableColumnsSelectorProps) => import("react/jsx-runtime").JSX.Element;
//# sourceMappingURL=TableColumnsSelector.d.ts.map