Data Model
The data model can be called in the JSON layout when parsing elements.
'use' parameter
When defining this datamodel :
\{
"data" : \{
"p1" : "Data1",
"p2" : "Data2"
}
}
You can call elements from the data model like this:
\{
"text" : \{ "text" : ".data.p1" , "fontsize" : "12px", "color" : "#0096D6" }
}
And you can also define an 'use' parameter like this:
\{
"text" : \{ "use" : ".data" , "text" : ".p1" , "fontsize" : "12px", "color" : "#0096D6" }
}
This permit to navigate into the data model nodes when inner element are defined in a layout. (gridlayout, linearlistlayout)
Conditionnal
Under construction.
Loops
Under construction.