Argument types
Each argument has a type with a different UI and expected expression value.

It's expected an expression that will be evaluated as a string.
Interpolation can be achieved using JavaScript template syntax.
Example: if there is a context text variable called
name
and the expression is My name is ${ $.name }
, on preview mode the variable value will replace it.
Rich text input.
Selecting brings the rich text editor with options such as bold, italic and
code
. Rich text shortcuts are also available.It's expected an expression that can be evaluated as a string.
For rich text formatting use HTML tags.

Number input with up and down buttons.
It's expected an expression that can be evaluated as a number.
TBP
TBP
TBP
TBP
TBP
TBP
TBP
TBP
TBP
TBP
TBP

Color picker with hex values, opacity and default colors.

Alignment input. Default is
center
.It's expected an expression that can be evaluated as one of the following strings:
top
left
right
center
bottom
top-left
top-right
bottom-left
bottom-right
TBP

Four number inputs for top, bottom, left and right paddings.
Alongside the inputs there is a checkbox that unifies them in pairs
top + bottom
left + right
vertical + horizontal
It's expected an expression that can be evaluated as an object containing the following properties (the dimension property must be one of CSS units):
{
"top": { "value": 8, "dimension": "px" },
"bottom": { "value": 8, "dimension": "px" },
"left": { "value": 16, "dimension": "px" },
"right": { "value": 16, "dimension": "px" },
"sameAll": false,
"sameHorizontal": true,
"sameVertical": true
}

Shadow offsets for vertical and horizontal axis, spread, blur and color properties can be set.
Four number inputs for offset x , offset y, blur and spread and a color picker for the shadow color.
It's expected an expression that can be evaluated as an object containing the following properties (the color property must be one of CSS colors):
{
"x": 5,
"y": 4,
"color": "rgba(0, 0, 0, 0.15)",
"blur": 3,
"spread": 1
}

Border properties:
width
, color
, style
and radius
.
All properties can be individually set for each side.Two number inputs for border width and radius in pixels, one color picker for border color and one options input for border style (available styles are none, solid, dashed and doted).
All inputs have a button alongside them that allows for individual setting of the property.
It's expected an expression that can be evaluated as an object with the following properties (where the
style
property is one of none
, solid
, dashed
or dotted
){
"width": 0,
"style": "solid",
"color": "rgba(0, 0, 0, 0.25)",
"radius": 4
}
TBP
TBP
TBP
It's expecter an array of objects with a
label
and a value
property, eg:[
{
"label": "Option A",
"value": 1
},
{
"label": "Option B",
"value": 2
},{
"label": "Option C",
"value": 3
}
]
The value of the input will be the
value
property of the selected option.It can be remote or local
Remote refers to connectors or SQL queries
When local, it allows any JS Array, eg:
[ { "name": "John", "age": 45 }, { "name": "Anne", "age": 34 } ]
Also, it can be an object with the type
{
"remote": false,
"data": [ HERE IS THE DATA HARDCODED ],
"arguments": {}
}
When it is remote
TBP
TBP
TBP
TBP
TBP
TBP
Image file.
UI
Input direct URL for the image or upload the asset.
Expression Mode
It's expected an expression that can be evaluated as string containing the direct URL for the asset.
TBP
Last modified 1yr ago