File manager - Edit - /var/www/payraty/helpdesk/common/resources/client/ui/tables/table-context.ts
Back
import {createContext} from 'react'; import type {SortDescriptor} from './types/sort-descriptor'; import type {TableProps} from './table'; import type {ColumnConfig} from '../../datatable/column-config'; import type {TableDataItem} from './types/table-data-item'; export type TableSelectionStyle = 'checkbox' | 'highlight'; export interface TableContextValue<T extends TableDataItem = TableDataItem> { isCollapsedMode: boolean; selectedRows: (string | number)[]; onSelectionChange: (keys: (string | number)[]) => void; sortDescriptor?: SortDescriptor; onSortChange?: (descriptor: SortDescriptor) => any; enableSelection?: boolean; enableSorting?: boolean; selectionStyle: TableSelectionStyle; data: T[]; meta?: any; columns: ColumnConfig<T>[]; toggleRow: (item: T) => void; selectRow: (item: T | null, merge?: boolean) => void; hideBorder: boolean; hideHeaderRow: boolean; collapseOnMobile: boolean; onAction: TableProps<T>['onAction']; selectRowOnContextMenu: TableProps<T>['selectRowOnContextMenu']; cellHeight: string | undefined; headerCellHeight: string | undefined; } export const TableContext = createContext<TableContextValue>(null!);
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings