RootData
An object representing the root data. Similar to ComponentData.
{
"props": {
"title": "Hello, world"
}
}Params
| Param | Example | Type | Status |
|---|---|---|---|
props | props: { title: "Hello, world" } | Object | Required |
readOnly | readOnly: { title: true } | Object | - |
synced | synced: false | Boolean | - |
Required params
props
The props stored for the root config.
React Editor passes them to the root
render()
function.
{
"props": {
"title": "Hello, world"
}
}Optional params
synced
Controls whether root props come from data.globals.root. Root data is synced
by default unless config.root.global is false. Set synced: false to make
the root props local to this page.
readOnly
An object describing which fields are set to read-only.
{
"props": {
"title": "Hello, world"
},
"readOnly": {
"title": true
}
}