diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/extensions/property-editor.extension.ts b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/extensions/property-editor.extension.ts index 31ff43ed7b4a..3185e282c262 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/extensions/property-editor.extension.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/property-editor/extensions/property-editor.extension.ts @@ -69,6 +69,10 @@ export interface PropertyEditorSettingsProperty { propertyEditorDataSourceAlias?: string; config?: UmbPropertyEditorConfig; weight?: number; + validation?: { + mandatory: boolean; + mandatoryMessage?: string | null; + }; } // eslint-disable-next-line @typescript-eslint/naming-convention diff --git a/src/Umbraco.Web.UI.Client/src/packages/data-type/components/property-editor-config/property-editor-config.element.ts b/src/Umbraco.Web.UI.Client/src/packages/data-type/components/property-editor-config/property-editor-config.element.ts index 4ee552be0c88..8f3024744870 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/data-type/components/property-editor-config/property-editor-config.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/data-type/components/property-editor-config/property-editor-config.element.ts @@ -52,7 +52,8 @@ export class UmbPropertyEditorConfigElement extends UmbLitElement { alias=${property.alias} property-editor-ui-alias=${property.propertyEditorUiAlias} property-editor-data-source-alias=${ifDefined(property.propertyEditorDataSourceAlias)} - .config=${property.config}>`, + .config=${property.config} + .validation=${property.validation}>`, ) : html`There is no configuration for this property editor.