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
8 lines
646 B
Plaintext
8 lines
646 B
Plaintext
import type { ClientField, CollectionConfig, CollectionPreferences, Field } from 'payload';
|
|
/**
|
|
* Returns the initial columns to display in the table based on the following criteria:
|
|
* 1. If `defaultColumns` is set in the collection config, use those columns
|
|
* 2. Otherwise take `useAtTitle, if set, and the next 3 fields that are not hidden or disabled
|
|
*/
|
|
export declare const getInitialColumns: <T extends ClientField[] | Field[]>(fields: T, useAsTitle: CollectionConfig["admin"]["useAsTitle"], defaultColumns: CollectionConfig["admin"]["defaultColumns"]) => CollectionPreferences["columns"];
|
|
//# sourceMappingURL=getInitialColumns.d.ts.map |