RootData

An object representing the root data. Similar to ComponentData.

{
  "props": {
    "title": "Hello, world"
  }
}

Params

ParamExampleTypeStatus
propsprops: { title: "Hello, world" }ObjectRequired
readOnlyreadOnly: { title: true }Object-
syncedsynced: falseBoolean-

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
  }
}