There are several field types that behave different while generating forms and lists, or saving a record. This page summarizes all available field types in GreenLight.
The following field types either have no special parameters or are mostly for storing data directly into the model they are associated with.
Field type | Description | Parameters |
---|---|---|
checkbox | Checkbox input with on-off state | disabled |
color | Color picker input working with hex values | readonly, disabled |
date | Date input (with no time value) | |
datetime | Date input (with time value) | |
int | Integer type input | readonly, disabled |
password | Password input | |
select | Drop-down select input | |
text | Short text input | readonly, disabled |
There are a few special field types as well, that have more customizable parameters and behave different while viewing or saving records. For more information, check further pages of this chapter.
Field type | Description | Parameters |
---|---|---|
cascade | Embedded forms supporting 1:n relationships | model, titleField |
fk | Drop-down select input supporting 1:1 relationships | model, readonly |
file | File input | directory |
image | Image input | directory |
textEditor | TinyMCE editor for longer, optionally formatted texts | softBreaks, templates |