View types¶
View types are the following constants in the platform:
module.exports = {
GROUP: 0,
TEXT: 1,
REFERENCE: 2,
COLLECTION: 3,
CHECKBOX: 4,
COMBO: 5,
DATE_PICKER: 120,
DATETIME_PICKER: 6,
MULTILINE: 7,
WYSIWYG: 8,
RADIO: 9,
MULTISELECT: 10,
FILE: 11,
PASSWORD: 12,
IMAGE: 13,
NUMBER_PICKER: 14,
DECIMAL_EDITOR: 15,
URL: 17,
PERIOD_PICKER: 60,
GEO: 100,
ATTACHMENTS: 110,
SCHEDULE: 210,
CALENDAR: 220
};
NB: for more details see correspondance table.
Code | Name | Description |
---|---|---|
0 | Group | Special structure of creation and change views. |
1 | String | View for text data or conversion to text form. Trim is configured (i.e. discarding spaces from the beginning and end of the line) |
2 | Reference | For reference fields, the relationship is 1kN. Allows you to specify possible operations on objects of the class to which we refer. |
3 | Collection | For collections, the relationship is Nk1. Allows you to specify possible operations on objects of the class to which we refer. |
4 | Flag | Boolean type checkbox. |
5 | Drop-down list | For those with the specified field selectionProvider . |
7 | Multiline text | A view for the text. Trim is configured (i.e. discarding spaces from the beginning and end of the line) |
8 | Formatted text | Rich text editor. |
9 | Alternative choice | Attribute of the “Set [15]” type can have one element of the set. Not implemented |
10 | Multiple choice | Attribute of the “Set [15]” type can have several elements of the set. Not implemented |
11 | File selection | View for selecting and uploading a file. |
12 | Password | In theory it should provide hiding of the entered data, but not implemented. |
13 | Image selection | View for selecting and loading an image, checks that it is the image that is loaded, and displays a preview. |
14 | Integer editor | Editor for integers, checks the correctness of the input. |
15 | Real number editor | Editor for real numbers, checks the correctness of the input, requires the use of . for separating the fractional part. |
17 | URL | Not implemented |
60 | Period selection | View that allows you to enter two dates (period boundaries). |
100 | Geodata | Specifies the view for the “Geodata [100]” type. |
110 | File set | View for selecting and uploading multiple files. Controls that the files belong to one of the types specified in the meta attribute, the total size of the files and the number. |
210 | Schedule | View for the attribute type “Schedule [210]”, allows you to set a schedule, displayed in a tabular form. |
220 | Сalendar | View for the attribute type “Schedule [210]”, allows you to specify a calendar, displayed as a calendar. |