Dynamic
dynamic
Description
BETA A field that allows the user to add additional properties on the fly. It assumes some structure to the created attributes and new attributes will get suffixed with a dash and number "-22".
Attributes
$capture.match
: Regex to find all the related properties$capture.field
: Prefix mask regex; newly added attributes will get this prefix$capture.schema
: A schema for the new property that uses the Popup metric. Must include $data.attribute
:value
:default
Example
{
"type": "string",
"$capture": {
"as": "dynamic",
"match": "val1",
"field": "val1",
"schema": {
"value": {
"default": "val1"
},
"attribute": {
"$data": {
"source": [
{
"display": "val1",
"value": "val1",
"icon": "heart",
"color": "red",
"tableData": {
"id": 0
}
},
{
"display": "val2",
"value": "val2",
"icon": "star",
"color": "black"
}
]
}
}
}
},
"$display": {},
"title": "Dynamic"
}