Core API

Interpretation

Interface is an integral part of every program, especially for low &no-code platforms. For easy and convenient using of the application made there, it must be user-friendly. Therefore, the type of displaying and its customizing are incredibly important. For this task, the interpretation exists. Its settings allows you to configure in which part of application and how the elements will be displayed.

In this article you can read about:

  1. Interpretation Types

  2. Interpretation Places

  3. Interpretation of GH-elements

Interpretation Types

Interpretation type is a model on which the platform understand how to display the data. The programmer writes them himself, so he can edit and delete it or add a new one at any time.

Interpretation types are available in gh-elements settings. You can fluently change them during the application existing. There is the one that is used by default. It will be displayed, if the other interpretation types do not exist or are not selected.

Interpretation Places

Interpretation places are the places where the element with the selected type of interpretation will be displayed.

There are many types of such places. Each of them is set as an elem-src var.

Place Where they will be assigned
Form assigned in the view
Table assigned in the table
Input assigned in the form
Input list assigned in the input list
Dropdown assigned in the dropdown
Document assigned in the document

Container deserves particular attention. This interpretation type which will be used first, if it exists.

Interpretation of GH-elements

Every gh-element has a variety of different interpretation types. In addition, developers can add their own one.

{
    "interpretation":[{
        "id": "default",
        "settings": {
            "editable": 0,
            "show_field": 1,
            "show_field_name": 0
        },
        "src": "table"
    }]
}

In fact, all differences between interpretation types are values of id and src properties. All other properties can be configured regardless of the source place.

Name Type Description
id string shows the type of value; details...
settings object contains basic value settings
editable boolean shows is field value editable or not
show_field boolean shows the field is displayed or not
show_field_name boolean shows the field name is displayed or not
src string shows where current interpretation type is displayed; details...