Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
import type { CollectionPreferences, Column } from 'payload';
|
|
import type { SortColumnProps } from '../../elements/SortColumn/index.js';
|
|
export interface ITableColumns {
|
|
columns: Column[];
|
|
LinkedCellOverride?: React.ReactNode;
|
|
moveColumn: (args: {
|
|
fromIndex: number;
|
|
toIndex: number;
|
|
}) => Promise<void>;
|
|
resetColumnsState: () => Promise<void>;
|
|
setActiveColumns: (columns: string[]) => Promise<void>;
|
|
toggleColumn: (column: string) => Promise<void>;
|
|
}
|
|
export type TableColumnsProviderProps = {
|
|
readonly children: React.ReactNode;
|
|
readonly collectionSlug: string | string[];
|
|
readonly columnState: Column[];
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly docs?: any[];
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly enableRowSelections?: boolean;
|
|
readonly LinkedCellOverride?: React.ReactNode;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly listPreferences?: CollectionPreferences;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly preferenceKey?: string;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly renderRowTypes?: boolean;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly setTable?: (Table: React.ReactNode) => void;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly sortColumnProps?: Partial<SortColumnProps>;
|
|
/**
|
|
* @deprecated
|
|
*/
|
|
readonly tableAppearance?: 'condensed' | 'default';
|
|
};
|
|
//# sourceMappingURL=types.d.ts.map |