gantri-components 2.83.0-beta.1 → 2.83.0-beta.3

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.
@@ -1,4 +1,5 @@
1
1
  export interface UseTrackStickyCellsProps {
2
+ hasConfigurableColumns: boolean;
2
3
  numRows: number;
3
4
  /** The containing element that the child will intersect with. */
4
5
  root: HTMLElement | null;
@@ -101,6 +101,12 @@ export interface CustomTableMeta<TData extends RowData> {
101
101
  onColumnsConfigChange?: (config: ColumnConfig[]) => Promise<void>;
102
102
  }
103
103
  export interface CustomColumnMeta<TData extends RowData, TValue> {
104
+ /** Can be used to map over the columns and generate download data for a CSV. */
105
+ download: {
106
+ getValue: (data: TData) => string | number;
107
+ header: string;
108
+ key: string;
109
+ };
104
110
  /** If the function returns true, enables clickable td styling. */
105
111
  getIsClickable?: (cell: Cell<TData, TValue>) => boolean;
106
112
  /** If a function is returned, it will be passed to the td element and automatically enable clickable td styling. */