Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/DecimalConfigurationEditor.cs
Kenn Jacobsen cc082e191c Clean up datatype configurations for V14 (#15718)
* Clean up datatype configurations for V14

* Fix merge

* Remove ParameterEditorCollection + revert accidental changes to core project file
2024-02-15 12:36:23 +01:00

28 lines
688 B
C#

using Umbraco.Cms.Core.PropertyEditors.Validators;
namespace Umbraco.Cms.Core.PropertyEditors;
/// <summary>
/// A custom pre-value editor class to deal with the legacy way that the pre-value data is stored.
/// </summary>
public class DecimalConfigurationEditor : ConfigurationEditor
{
public DecimalConfigurationEditor()
{
Fields.Add(new ConfigurationField(new DecimalValidator())
{
Key = "min"
});
Fields.Add(new ConfigurationField(new DecimalValidator())
{
Key = "step",
});
Fields.Add(new ConfigurationField(new DecimalValidator())
{
Key = "max",
});
}
}