AppTypes defines custom data types used in the application. Each type can have its own UI elements, associated page or view, fields, and categories. This allows developers to create structured and reusable data models for their app's content and functionality.
| Field | Type | Default Value | Description |
|---|---|---|---|
| Name | String | {name} | Name of the custom type |
| Logo | Logo | {logo} | Icon/logo representing this type |
| Elements | Array |
[] | UI elements associated with this type |
| View | PageName | {pageName} | Page or layout used to display this type |
| Fields | Array |
[] | List of fields defining the structure of this type |
| Categories | Array |
[] | Categories this type belongs to |
Coding:
{
"AppTypes": [
{
"Name": "{name}",
"Logo": "{logo}",
"Elements": [],
"View": "{pageName}",
"Fields": [],
"Categories": []
}
]
}
Fields define the structure of a custom type. Each field includes a name, placeholder hint, data type, maximum value, highlight flag, and default value. These fields allow fine-grained control over the type’s content and validation.
| Field | Type | Default Value | Description |
|---|---|---|---|
| Name | String | {name} | Name of the field |
| Hint | String | {hint} | Hint or placeholder text |
| Type | FieldType | {type} | Data type of the field (e.g., string, int, bool, date) |
| Max | Number | 1000 | Maximum allowed value (for numbers or length for strings) |
| Hot | Boolean | false | Marks field as highlighted or important |
| Value | String | {value} | Default value for the field |
Coding:
{
"Name": "{name}",
"Hint": "{hint}",
"Type": "{type}",
"Max": 1000,
"Hot": false,
"Value": "{value}"
}
Categories group custom types into logical clusters. Each category has a name and an icon/logo, which can help organize types visually and semantically within the app.
| Field | Type | Default Value | Description |
|---|---|---|---|
| Name | String | {name} | Category name |
| Logo | Logo | {logo} | Icon/logo representing the category |
Coding:
{
"Name": "{name}",
"Logo": "{logo}"
}