-
Notifications
You must be signed in to change notification settings - Fork 10
1.3. Configuring activity metadata
abasic edited this page Mar 5, 2020
·
1 revision
Code needs to be added in .activities-rc.json
file, inside of the OUTLINE_LEVELS
meta arrays. Metadata will be displayed in the activity sidebar:
meta: [{
"key": "inputKey",
"type": "INPUT",
"label": "Input field",
"placeholder": "Click to add...",
"validate": { "rules": { "required": false, "max": 250 } }
}]
meta: [{
"key": "textareaKey",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": { "rules": { "required": false, "max": 250 } }
}]
meta: [{
"key": "textareaKey",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": { "rules": { "required": false, "max": 250 } }
}]
meta: [{
"key": "textareaKey",
"type": "TEXTAREA",
"label": "Description",
"placeholder": "Click to add...",
"validate": { "rules": { "required": false, "max": 250 } }
}]
meta: [{
"key": "colorKey",
"type": "COLOR",
"label": "Pick a color"
}]
meta: [{
"key": "selectKey",
"type": "SELECT",
"label": "Select From List"
"options": [{
"label": "selection 1",
"value": 5
}, {
"label": "selection 2",
"value": 10
}, {
"label": "selection 3",
"value": 15
}]
}]
meta: [{
"key": "multiselectKey",
"type": "MULTISELECT",
"label": "Objective",
"placeholder": "Select From List",
"options": [{
"label": "Option 1",
"value": 1
}, {
"label": "Option 2",
"value": 2
}, {
"label": "Option 3",
"value": 3
}]
}]
meta: [{
"key": "datePicker",
"type": "DATETIME",
"label": "date picker"
}]
meta: [{
"key": "html",
"type": "HTML",
"label": "html with quill"
}]
meta: [{
"key": "file",
"type": "FILE",
"label": "File Upload",
"placeholder": "Click to add...",
"validate": {
"rules": {
"ext": [
"pdf",
"xlsx",
"mp3",
"ogg",
"wma",
"rar",
"tar.gz",
"7z",
"zip",
"jpg",
"jpeg",
"png",
"xml",
"tar"
]
}
}
}]