Nova · Layouts
Path
A string that starts with $. is a path into the data. It is replaced by what stands there; a value further in is reached by a longer path.
{
id: 'path',
data: { member: { name: 'Ada', city: 'London' } },
layout: {
component: 'Stack',
children: [
{ component: 'Text', children: '$.member.name' },
{ component: 'Text', children: '$.member.city' },
],
},
}Ada
London
Nothing. It is only drawn.
{ member: { name: 'Ada', city: 'London' } }Ada London
Left: the action as the package ships it. Right: the same action running in this page, rendered with this site’s components. Below: the action run as the example specifies, on the installed package.