Files
payloadcms/test/fields-array/config.ts
2022-07-15 12:51:43 -07:00

36 lines
651 B
TypeScript

import { buildConfig } from '../buildConfig';
export const slug = 'fields-array';
export default buildConfig({
collections: [
{
slug,
fields: [
{
type: 'array',
name: 'readOnlyArray',
label: 'readOnly Array',
admin: {
readOnly: true,
},
defaultValue: [
{
text: 'defaultValue',
},
{
text: 'defaultValue2',
},
],
fields: [
{
type: 'text',
name: 'text',
},
],
},
],
},
],
});