Co-authored-by: James <james@trbl.design> Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com>
36 lines
651 B
TypeScript
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',
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
],
|
|
});
|