>('includeProperties'),
+ (includeProperties) => {
+ if (!includeProperties) return;
+ this._options = includeProperties.map((property) => ({
+ name: property.header,
+ value: property.alias,
+ selected: property.alias === this.value,
+ }));
+ },
+ '_observeIncludeProperties',
+ );
+ });
+ }
#onChange(e: UUISelectEvent) {
this.value = e.target.value as string;
@@ -36,6 +46,7 @@ export class UmbPropertyEditorUICollectionOrderByElement extends UmbLitElement i
}
render() {
+ if (!this._options.length) return html`Add a column (above) to order by.
`;
return html``;
}
}
diff --git a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection/manifests.ts b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection/manifests.ts
index c008f1a678..942082d3d5 100644
--- a/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection/manifests.ts
+++ b/src/Umbraco.Web.UI.Client/src/packages/property-editors/collection/manifests.ts
@@ -23,13 +23,6 @@ const propertyEditorUiManifest: ManifestPropertyEditorUi = {
description: 'The properties that will be displayed for each column.',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Collection.LayoutConfiguration',
},
- {
- alias: 'pageSize',
- label: 'Page Size',
- description: 'Number of items per page.',
- propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
- config: [{ alias: 'min', value: 0 }],
- },
{
alias: 'orderBy',
label: 'Order By',
@@ -41,6 +34,13 @@ const propertyEditorUiManifest: ManifestPropertyEditorUi = {
label: 'Order Direction',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.OrderDirection',
},
+ {
+ alias: 'pageSize',
+ label: 'Page Size',
+ description: 'Number of items per page.',
+ propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
+ config: [{ alias: 'min', value: 0 }],
+ },
{
alias: 'bulkActionPermissions',
label: 'Bulk Action Permissions',