Skip to main content
Version: 4.64

Start Config

The start configuration defines the starting point of the app. It specifies which display type, layout, client template, and named style are used when the app starts.

Quick guide​

Start config files are stored in the ./start_config directory.

./start_config/
└── default.json

The default.json file contains a content object with the configuration settings.

{
"name": "default",
"content": {
"type": "layered",
"layout": "c_home",
"template": "home",
"templateIsNode": true,
"namedStyle": "main"
}
}

Start config files​

By default, the app uses the default.json file. Additional start configurations can be created for different use cases, such as an onboarding.json configuration for an app introduction.

./start_config directory​

Start config files are located in the ./start_config directory.

Start config file structure​

Each start config file contains a name field and a content object.

The name field defines the name of the start configuration. It must match the filename.

./start_config/
├── default.json
└── onboarding.json
{
"name": "onboarding"
}

The content object contains the configuration. It can contain the following properties:

KeyTypeDescriptionDefault
layoutStringLayout to be used.null
namedStyleStringNamed style to be used.default
queryStringQuery to be used.null
tableStringDatabase table to be used.null
templateStringClient template to be used.null
templateIsNodeBooleanDefines whether the template is a node.null
typeStringType of the displayed view. Possible values are layered and tab.null

Examples​

Basic start config​

This example shows a basic default.json start configuration.

{
"name": "default",
"content": {
"type": "layered",
"layout": "c_home",
"template": "home",
"templateIsNode": true,
"namedStyle": "main"
}
}

Switching between start configurations​

If several start configurations are available, they can be switched using the setCustomStart action.

{
"type": "setCustomStart",
"params": {
"startConfig": "onboarding",
"switchToCustomStart": true
}
}

In this example, the onboarding start configuration is selected.

Troubleshooting​

If a start configuration does not work as expected, check the following:

  1. Is the start configuration stored in the ./start_config directory?
  2. Does the name field match the filename?
  3. Do the referenced layout, client template, and named style exist?
  4. Is the start configuration name in setCustomStart spelled correctly?