Changeset View
Changeset View
Standalone View
Standalone View
src/docs/user/configuration/custom_fields.diviner
| Show First 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | - **options**: If type is set to **select**, provide options for the dropdown | ||||
| as a dictionary. | as a dictionary. | ||||
| - **default**: Default field value. | - **default**: Default field value. | ||||
| - **strings**: Allows you to override specific strings based on the field | - **strings**: Allows you to override specific strings based on the field | ||||
| type. See below. | type. See below. | ||||
| - **instructions**: Optional block of remarkup text which will appear | - **instructions**: Optional block of remarkup text which will appear | ||||
| above the control when rendered on the edit view. | above the control when rendered on the edit view. | ||||
| - **placeholder**: A placeholder text that appears on text boxes. Only | - **placeholder**: A placeholder text that appears on text boxes. Only | ||||
| supported in text, int and remarkup fields (optional). | supported in text, int and remarkup fields (optional). | ||||
| - **list**: If set to `icon`, `attribute` or `byline`, the value of the field | |||||
| will be shown in list-view. | |||||
| - **list.icon**: If `list` is set to `icon`, use this icon. | |||||
| - **list.label**: When rendering value in a list, add this label. | |||||
| - **copy**: If true, this field's value will be copied when an object is | - **copy**: If true, this field's value will be copied when an object is | ||||
| created using another object as a template. | created using another object as a template. | ||||
| The `strings` value supports different strings per control type. They are: | The `strings` value supports different strings per control type. They are: | ||||
| - **bool** | - **bool** | ||||
| - **edit.checkbox** Text for the edit interface, no default. | - **edit.checkbox** Text for the edit interface, no default. | ||||
| - **view.yes** Text for the view interface, defaults to "Yes". | - **view.yes** Text for the view interface, defaults to "Yes". | ||||
| ▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines | |||||