diff --git a/backend-controllers-ajax.md b/backend-controllers-ajax.md index c5f94336..a0e29700 100644 --- a/backend-controllers-ajax.md +++ b/backend-controllers-ajax.md @@ -55,6 +55,12 @@ Usually each controller implements functionality for working with a single type The backend controller base class defines a number of properties that allow to configure the page appearance and manage the page security: + +
+ Property | Description ------------- | ------------- `$fatalError` | allows to store a fatal exception generated in an action method in order to display it in the view. diff --git a/backend-forms.md b/backend-forms.md index 00deed98..167f37cf 100644 --- a/backend-forms.md +++ b/backend-forms.md @@ -74,6 +74,12 @@ preview: The following fields are required in the form configuration file: + + + Field | Description ------------- | ------------- `name` | the name of the object being managed by this form. @@ -82,6 +88,12 @@ Field | Description The configuration options listed below are optional. Define them if you want the form behavior to support the [Create](#form-create-page), [Update](#form-update-page) or [Preview](#form-preview-page) pages. + + + Option | Description ------------- | ------------- `defaultRedirect` | used as a fallback redirection page when no specific redirect page is defined. @@ -104,6 +116,12 @@ create: The following configuration options are supported for the Create page: + + + Option | Description ------------- | ------------- `title` | a page title, can refer to a [localization string](../plugin/localization). @@ -127,6 +145,12 @@ update: The following configuration options are supported for the Update page: + + + Option | Description ------------- | ------------- `title` | a page title, can refer to a [localization string](../plugin/localization). @@ -218,6 +242,12 @@ Fields from related models can be rendered with the [Relation Widget](#widget-re For each tab definition, namely `tabs` and `secondaryTabs`, you can specify these options: + + + Option | Description ------------- | ------------- `stretch` | specifies if this tab stretches to fit the parent height. @@ -260,6 +290,12 @@ tabs: For each field you can specify these options (where applicable): + + + Option | Description ------------- | ------------- `label` | a name when displaying the form field to the user. @@ -739,6 +775,12 @@ css_content: language: html ``` + + + Option | Description ------------- | ------------- `language` | code language, for example, php, css, javascript, html. Default: `php`. @@ -756,6 +798,12 @@ color: type: colorpicker ``` + + + Option | Description ------------- | ------------- `availableColors` | list of available colors. If not provided, the widget will use the global available colors. @@ -822,6 +870,12 @@ data: The following lists the configuration values of the data table widget itself. + + + Option | Description ------ | ----------- `adding` | allow records to be added to the data table. Default: `true`. @@ -858,6 +912,12 @@ columns: title: Name ``` + + + Option | Description ------ | ----------- `type` | the input type for this column's cells. Must be one of the following: `string`, `checkbox`, `dropdown` or `autocomplete`. @@ -871,6 +931,12 @@ Option | Description Column cells can be validated against the below types of validation. Validation should be specified as an array, with the type of validation used as a key, and an optional message specified as the `message` attrbute for that validation. + + + Validation | Description ---------- | ----------- `float` | Validates the data as a float. An optional boolean `allowNegative` attribute can be provided, allowing for negative float numbers. @@ -891,6 +957,12 @@ published_at: mode: date ``` + + + Option | Description ------------- | ------------- `mode` | the expected result, either date, datetime or time. Default: `datetime`. @@ -924,6 +996,12 @@ avatar: extension: auto ``` + + + Option | Description ------------- | ------------- `mode` | the expected file type, either file or image. Default: image. @@ -967,6 +1045,12 @@ background_image: mode: image ``` + + + Option | Description ------------- | ------------- `mode` | the expected file type, either file or image. Default: file. @@ -1047,6 +1131,12 @@ user: modelClass: Winter\User\Models\User ``` + + + Option | Description ------------- | ------------- `keyFrom` | the name of column to use in the relation used for key. Default: `id`. @@ -1086,6 +1176,12 @@ user: You can also provide a model scope to use to filter the results with the `scope` property. + + + Option | Description ------------- | ------------- `nameFrom` | a model attribute name used for displaying the relation label. Default: `name`. @@ -1116,6 +1212,12 @@ extra_information: type: text ``` + + + Option | Description ------------- | ------------- `form` | a reference to form field definition file, see [backend form fields](#form-fields). Inline fields can also be used. @@ -1224,6 +1326,12 @@ api_secret: hideOnTabChange: true ``` + + + Option | Description ------------- | ------------- `allowCopy` | adds a "copy" action to the sensitive field, allowing the user to copy the password without revealing it. Default: `false` @@ -1260,6 +1368,12 @@ tags: mode: relation ``` + + + Option | Description ------------- | ------------- `mode` | controls how the value is returned, either string, array or relation. Default: `string` @@ -1391,6 +1505,12 @@ slug: The following options are available for the `preset` option: + + + Option | Description ------------- | ------------- `field` | defines the other field name to source the value from. @@ -1430,6 +1550,12 @@ send_at: In the above example the `send_at` form field will only be shown if the `is_delayed` field is checked. In other words, the field will show (action) if the other form input (field) is checked (condition). The `trigger` definition specifies these options: + + + Option | Description ------------- | ------------- `action` | defines the action applied to this field when the condition is met. Supported values: show, hide, enable, disable, empty. diff --git a/backend-import-export.md b/backend-import-export.md index bbb790fb..4c6a803f 100644 --- a/backend-import-export.md +++ b/backend-import-export.md @@ -56,6 +56,12 @@ export: The configuration options listed below are optional. Define them if you want the behavior to support the [Import](#import-page) or [Export](#export-page), or both. + + + Option | Description ------------- | ------------- `defaultRedirect` | used as a fallback redirection page when no specific redirect page is defined. @@ -101,6 +107,12 @@ export: The following configuration options are supported for the Export page: + + + Option | Description ------------- | ------------- `title` | a page title, can refer to a [localization string](../plugin/localization). @@ -226,6 +238,12 @@ class SubscriberImport extends \Backend\Models\ImportModel The class must define a method called `importData` used for processing the imported data. The first parameter `$results` will contain an array containing the data to import. The second parameter `$sessionKey` will contain the session key used for the request. + + + Method | Description ------------- | ------------- `logUpdated()` | Called when a record is updated. @@ -329,6 +347,12 @@ export: The following configuration options are supported: + + + Option | Description ------------- | ------------- `definition` | the list definition to source records from, optional. diff --git a/backend-lists.md b/backend-lists.md index f7ab7703..89047034 100644 --- a/backend-lists.md +++ b/backend-lists.md @@ -61,6 +61,12 @@ recordUrl: acme/blog/posts/update/:id The following fields are required in the list configuration file: + + + Field | Description ------------- | ------------- `title` | a title for this list. @@ -69,6 +75,12 @@ Field | Description The configuration options listed below are optional. + + + Option | Description ------------- | ------------- `filter` | filter configuration, see [filtering the list](#adding-filters). @@ -110,6 +122,12 @@ Option | Description The search configuration supports the following options: + + + Option | Description ------------- | ------------- `prompt` | a placeholder to display when there is no active search, can refer to a [localization string](../plugin/localization). @@ -170,6 +188,12 @@ columns: For each column can specify these options (where applicable): + + + Option | Description ------------- | ------------- `label` | a name when displaying the list column to the user. @@ -526,6 +550,12 @@ scopes: For each scope you can specify these options (where applicable): + + + Option | Description ------------- | ------------- `label` | a name when displaying the filter scope to the user. diff --git a/backend-relations.md b/backend-relations.md index 4f6205da..82f32a20 100644 --- a/backend-relations.md +++ b/backend-relations.md @@ -85,6 +85,12 @@ items: The following options are then used for each relationship name definition: + + + Option | Description ------------- | ------------- `label` | a label for the relation, in the singular tense, required. @@ -97,6 +103,12 @@ Option | Description These configuration values can be specified for the **view** or **manage** options, where applicable to the render type of list, form or both. + + + Option | Type | Description ------------- | ------------- | ------------- `form` | Form | a reference to form field definition file, see [backend form fields](forms#form-fields). @@ -112,6 +124,12 @@ Option | Type | Description These configuration values can be specified only for the **view** options. + + + Option | Type | Description ------------- | ------------- | ------------- `showCheckboxes` | List | displays checkboxes next to each record. @@ -123,6 +141,12 @@ Option | Type | Description These configuration values can be specified only for the **manage** options. + + + Option | Type | Description ------------- | ------------- | ------------- `title` | Both | a popup title, can refer to a [localization string](../plugin/localization).