Skip to content

Dashboard

daschy edited this page Jan 4, 2017 · 1 revision

The Dashboard keyword creates a new Dashboard object. Al the other configurations will derive from it. The fundamental unit of a Dashboard is the row, just like in a table structure. In each row various objects can be placed (apart from other Dashboards), each inserted object defines a column in the row. The Dashboard, if used, must be the first element of a DSL configuration. Its identity field is:

  • label (optional): this attribute accepts a string. It contains the string that is going to be displayed as a title to the Dashboard view;

Its body fields are:

  • row (required): this is a special parameter, different from the row described for the Document. It corresponds to the information that has to be displayed in a row of the Dashboard and its content has to be defined through the language components:

  • Cell;

  • Document;

  • Collection.

The following code shows an example of Dashboard.

Dashboard(
        label: "Dashboard"
    )
    {
        row(
            Document(
                table: "prova"
            )
            {
                row(
                    name: "email",
                    type: "string",
                    label: "Email"
                )
            }
            Document(
                table: "prova"
            ){
            }
        )
        row(
            Document(
                table: "prova"
            ){
            }
            Collection(
                table: "users"
            ){
            }
            Cell(
                type: "string"
            ){
            }
        )
    }

Clone this wiki locally