-
Notifications
You must be signed in to change notification settings - Fork 11
1.5. Configuring content element meta
Luka Bebic edited this page Nov 5, 2020
·
4 revisions
Configurable inputs may be added to a content element by specifying the content element type inside the tesMeta array (inside the scheme) and then adding the configurable inputs in the element's meta array.
elementMeta: [{
type: 'VIDEO',
relationships: [{
key: 'relatedImage',
label: 'Related Image',
placeholder: 'Select related image',
multiple: false,
allowedTypes: ['IMAGE']
}, {
key: 'relatedDocuments',
label: 'Related Document',
placeholder: 'Select related document',
multiple: true,
allowedTypes: ['PDF', 'VIDEO']
}],
inputs: [{
key: 'transcript',
type: 'TEXTAREA',
label: 'Transcript',
placeholder: 'Click to add...',
}, {
key: 'caption',
type: 'FILE',
label: 'Caption',
placeholder: 'Click to upload text file',
validate: {
rules: {
ext: ['txt']
}
}
}]
}