Merge pull request #1453 from umbraco/feature/property-editor-for-decimals

Feature: Allow Decimals in step setting
This commit is contained in:
Lee Kelleher
2024-03-19 16:42:54 +00:00
committed by GitHub
2 changed files with 7 additions and 3 deletions

View File

@@ -12,19 +12,19 @@ export const manifest: ManifestPropertyEditorSchema = {
alias: 'min',
label: 'Minimum',
description: 'Enter the minimum amount of number to be entered',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Decimal',
},
{
alias: 'max',
label: 'Maximum',
description: 'Enter the minimum amount of number to be entered',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Decimal',
},
{
alias: 'step',
label: 'Step size',
description: 'Enter the intervals amount between each step of number to be entered',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Number',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Decimal',
},
],
},

View File

@@ -46,6 +46,10 @@ export const manifests: Array<ManifestPropertyEditorUi> = [
alias: 'allowDecimals',
value: true,
},
{
alias: 'step',
value: '0.01',
},
],
},
},