surveil/doc/source/webui/configuration/layout_configuration.rst
flavien peyre 81f8950e07 Documentation of webui
Change-Id: I7dae5e5caca4461e4cc9a8d72b521198bf460f8b
2015-08-25 15:05:52 -04:00

890 B

Layout configuration

The layout configuration is a JSON file containing the configuration of every page.

For example, the following page would be available at: /#/view?view=myPageUrl.

{
    "myPageUrl": {
        "template": "page",
        "components": [...]
  }
}
Template [ page || drupal || drupal_dashboard ]

This corresponds to the template that will be loaded by the webUI.

Components

Components is an array of custom directives that define the layout of the page. See webui_custom_directives.

The available custom directives are:

  • webui_directives_panels
  • webui_directives_title
  • webui_directives_table
  • webui_directives_actionbar

Alternatively, you can use any custom directives but layout of the WebUI can look a little off.