Entities configuration
The config
row in the hellodb
table should contain a definition of the entities in the database.
For each entities and so table, this is the specification:
Property | Required | Usage |
---|---|---|
players | yes | An unique identifier defining the entity and the table name |
toString | yes | How to calculate the name of the entity to be rendered from this table, using its fields. Should contain column names (not SmartFields) preceded by $ |
label | yes | A translatable property defining the entity name in the singular form |
labelPlural | yes | A translatable property defining the entity name in the plural form |
newButton | yes | A translatable property defining the text for the "new" button |
editButton | yes | A translatable property defining the text for the "edit" button |
deleteButton | yes | A translatable property defining the text for the "delete" button |
fields | yes | Defines the configuration for each field of the table (see fields configuration) |
orderBy | no | Allows to automatically sort the entites list from a field |