-
Notifications
You must be signed in to change notification settings - Fork 5
Default Values
chrisala edited this page Apr 8, 2019
·
2 revisions
Data model items can be supplied a defaultValue attribute.
Literals and expressions are both supported. Expressions are evaluated against the parent model context of the data item, and behave the same as the computed attribute.
Examples:
{
"dataType":"number",
"name":"item1",
"defaultValue":1
}
{
"dataType":"number",
"name":"item1",
"defaultValue": {
"type":"computed",
"expression":"2*item2+3"
}
}