Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/IntegerConfigurationEditor.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
689 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 IntegerConfigurationEditor : ConfigurationEditor
{
public IntegerConfigurationEditor()
{
Fields.Add(new ConfigurationField(new IntegerValidator())
{
Key = "min",
});
Fields.Add(new ConfigurationField(new IntegerValidator())
{
Key = "step",
});
Fields.Add(new ConfigurationField(new IntegerValidator())
{
Key = "max",
});
}
}