Files
payloadcms/test/fields/collections/Array/shared.ts
2024-03-08 14:42:24 -05:00

67 lines
945 B
TypeScript

import type { ArrayField } from '../../payload-types.js'
export const arrayDoc: Partial<ArrayField> = {
title: 'array doc 1',
items: [
{
text: 'first row',
},
{
text: 'second row',
},
{
text: 'third row',
},
{
text: 'fourth row',
},
{
text: 'fifth row',
},
{
text: 'sixth row',
},
],
collapsedArray: [
{
text: 'initialize collapsed',
},
],
arrayWithMinRows: [
{
text: 'first row',
},
{
text: 'second row',
},
],
}
export const anotherArrayDoc: Partial<ArrayField> = {
title: 'array doc 2',
items: [
{
text: 'first row',
},
{
text: 'second row',
},
{
text: 'third row',
},
],
collapsedArray: [
{
text: 'initialize collapsed',
},
],
arrayWithMinRows: [
{
text: 'first row',
},
{
text: 'second row',
},
],
}