Skip to content
sochka edited this page Nov 23, 2014 · 10 revisions

Widgets are high-level abstractions, pieces using which Pages are built.

From developer's view widget is a directory (optionally archived using zip, tar or another archive format). It should have the following layout:

  • widget.json (required, contains the most important descriptional information about widget. Example:
{
    "description": "Description of widget \"summator\"",
    "schema": {
      "type": "object",
      "title": "Summator settings",
      "properties": {
        "title": {
          "type": "string",
          "title": "Widget title"
        },
        "a": {
          "type": "integer",
          "title": "Default value for first input"
        },
        "b": {
          "type": "integer",
          "title": "Default value for second input"
        },
        "aDisabled": {
          "type": "boolean",
          "title": "Should first field be disabled?"
        }
      }
    }
  }
  • widget.html (optional)
  • widget.js (optional)
Clone this wiki locally