Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation for allowDismiss and cssClass #207

Open
wants to merge 1 commit into
base: 1.2
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions backend/relations.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ Option | Type | Description
`noRecordsMessage` | List | a message to display when no records are found, can refer to a [localization string](../plugin/localization).
`conditions` | List | specifies a raw where query statement to apply to the list model query.
`scope` | List | specifies a [query scope method](../database/model#query-scopes) defined in the **related form model** to apply to the list query always. The model that this relationship will be attached to (i.e. the **parent model**) is passed to this scope method as the second parameter (`$query` is the first).
`allowDismiss` | List | closes the modal when clicking next to it. Default: `false`
`cssClass` | List | Adds extra CSS classes to the modal. Default: `null`
Comment on lines +106 to +107
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These options seem to only be used on the manage definitions, so they should be moved to that section (and specify that the type they can be used on is Both, not List). Can you also rename cssClass to popupClass?

**filter** | List | a reference to a filter scopes definition file, see [backend list filters](lists#using-list-filters).

These configuration values can be specified only for the **view** options.
Expand Down
Loading