buildgrid-ui 1.14.4 → 1.14.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/blocks/data-table/types/data-table.d.ts +13 -1
- package/dist/buildgrid-ui.es.js +1495 -1476
- package/dist/buildgrid-ui.umd.js +24 -24
- package/package.json +1 -1
|
@@ -1,10 +1,22 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
export interface DataTableColumn<T> {
|
|
3
3
|
key: keyof T;
|
|
4
|
-
title
|
|
4
|
+
/** The title of the column, can be a string or a React node */
|
|
5
|
+
title: string | React.ReactNode;
|
|
6
|
+
/** Optional custom renderer for the column cells */
|
|
5
7
|
customRenderer?: (value: any, row: T) => React.ReactNode;
|
|
8
|
+
/** Whether the column is sortable, defaults to false */
|
|
6
9
|
sortable?: boolean;
|
|
10
|
+
/** Whether the column is hidden by default, defaults to false */
|
|
7
11
|
hidden?: boolean;
|
|
12
|
+
/** Optional width for the column, can be a number (px) or string (e.g. '100px', '20%') */
|
|
13
|
+
width?: number | string;
|
|
14
|
+
/** Optional className for the column header */
|
|
15
|
+
headerClassName?: string;
|
|
16
|
+
/** Optional className for the column cells */
|
|
17
|
+
cellClassName?: string;
|
|
18
|
+
/** Optional alignment for the column cells */
|
|
19
|
+
align?: 'left' | 'center' | 'right';
|
|
8
20
|
}
|
|
9
21
|
export interface FilterOption {
|
|
10
22
|
label: string;
|