* Clean up datatype configurations for V14 * Fix merge * Remove ParameterEditorCollection + revert accidental changes to core project file
28 lines
689 B
C#
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",
|
|
});
|
|
}
|
|
}
|