JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "column-config.tsx"

Full Path: /home/markqprx/iniasli.pro/client/datatable/column-config.tsx
File size: 643 bytes
MIME-type: text/plain
Charset: utf-8

import React, {ReactElement, ReactNode} from 'react';
import {TableDataItem} from '../ui/tables/types/table-data-item';

export interface RowContext {
  isHovered: boolean;
  index: number;
  isPlaceholder?: boolean;
}

export interface ColumnConfig<T extends TableDataItem> {
  key: string;
  header: () => ReactElement;
  hideHeader?: boolean;
  align?: 'start' | 'center' | 'end';
  padding?: string;
  className?: string;
  body: (item: T, rowContext: RowContext) => ReactNode;
  allowsSorting?: boolean;
  sortingKey?: string;
  width?: string;
  maxWidth?: string;
  minWidth?: string;
  visibleInMode?: 'compact' | 'regular' | 'all';
}