Skip to content

Config File 3 Tabs

herve edited this page Jan 30, 2019 · 1 revision

Tabs

Each form is composed of at least 1 tab that displays graphical objects in the form display window. Each tab must have the following properties (case insensitive):

  • name [string]: name of the tab (default: "(no name)")
  • background [string]: color of the form window background in RGB comma separated format (default: "240, 240, 240")
  • controls [array]: list of the graphical objects to appear

Example

The following file creates a form with 3 tabs which is applied to a view:

  • 1st tab: "View Information"
  • 2nd tab: "Elements in the view"
  • 3rd tab: "Relationships in the view"
{
    "org.archicontribs.form": {
         "name": "Form test for ${class} \"${name}\"",
	 "refers": "view",
         "width": 900,
         "height": 400,
         "spacing": 4,
         "background": "250, 250, 250",
         "whenEmpty": "ignore",
         "tabs": [
            {
                 "name": "View information",
                 "background": "225, 225, 225",
                 "controls": []
             },
             {
                 "name": "Elements in the view",
                 "background": "200, 200, 200",
                 "controls": []
             },
             {
                 "name": "Relationships in the view",
                 "background": "200, 200, 200",
                 "controls": []
             }
         ]
     }
}