@byline/cli 3.20.1 → 3.20.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,6 +76,15 @@ export const NewsAdmin: CollectionAdminConfig = defineAdmin(News, {
|
|
|
76
76
|
*/
|
|
77
77
|
columns: listViewColumns,
|
|
78
78
|
|
|
79
|
+
/**
|
|
80
|
+
* Default sort for the list view when the URL carries no explicit
|
|
81
|
+
* `order`/`desc` search params — an explicit param (a clicked column
|
|
82
|
+
* header, a shared link) always wins. `field` is a top-level schema
|
|
83
|
+
* field or a document column (`createdAt` / `updatedAt` / `path`);
|
|
84
|
+
* boot-validated, and not allowed on `orderable: true` collections.
|
|
85
|
+
*/
|
|
86
|
+
defaultSort: { field: 'publishedOn', direction: 'desc' },
|
|
87
|
+
|
|
79
88
|
/**
|
|
80
89
|
* Column definitions used when this collection appears as the target of a relation
|
|
81
90
|
* picker modal (opened from a `relation` field widget). Omit to fall back to a
|