Skip to content

Commit 4aa7316

Browse files
authored
Merge pull request #302 from RunOpenCode/master
Addendum to list builder documentation - default sort explained.
2 parents 3eda513 + bb8f60f commit 4aa7316

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Resources/doc/admin/builder-list.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ builders:
1616
filtersModalSize: ~
1717
fields: ~
1818
display: ~
19+
sort: ~
1920
actions: ~
2021
object_actions: ~
2122
batch_actions: ~
@@ -64,6 +65,15 @@ parameters overwrite the form parameters, if any.
6465
With the display parameter you can specify the fields that need to be displayed. Works the same as the
6566
[`filters`](#filters) parameter.
6667

68+
### Sort
69+
70+
`sort` __default__: `~` __type__: `array`
71+
72+
With this parameter you can define default sort column and sort order. First element of array is column,
73+
while sort order is optional second element of array and default is `ASC`. Example:
74+
75+
sort: [ column_name, 'ASC' ]
76+
6777
### Actions
6878

6979
Actions can be enabled by simply specifying them here with the value `~`. The following example will render the new

0 commit comments

Comments
 (0)