chore: adds array within row in tabsDoc data

This commit is contained in:
PatrikKozak
2024-04-22 16:18:14 -04:00
parent ba423ab424
commit d8a5426c37
3 changed files with 24 additions and 0 deletions

View File

@@ -142,6 +142,21 @@ const TabsFields: CollectionConfig = {
type: 'text',
defaultValue: namedTabDefaultValue,
},
{
type: 'row',
fields: [
{
name: 'arrayInRow',
type: 'array',
fields: [
{
name: 'textInArrayInRow',
type: 'text',
},
],
},
],
},
],
},
{

View File

@@ -35,6 +35,11 @@ export const tabsDoc: Partial<TabsField> = {
},
],
text: namedTabText,
arrayInRow: [
{
text: "Hello, I'm some text in an array in a row",
},
],
},
localizedTab: {
text: localizedTextValue,

View File

@@ -1084,6 +1084,10 @@ export interface TabsField {
}[]
text?: string | null
defaultValue?: string | null
arrayInRow?: {
text: string
id?: string | null
}[]
}
namedTabWithDefaultValue: {
defaultValue?: string | null