Files
Umbraco-CMS/src/Umbraco.Core/PropertyEditors/SliderConfiguration.cs
Andy Butland ebc38f4cb3 Server side validation for property editors (integer, decimal and slider) (#18428)
* Server side validation for integer property value editor.

* Apply suggestions from code review

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>

* Applied further changes from code review.

* Localized validation messages.

* Added server-side validation for decimal property editor.

* Added server-side validation for slider property editor.

* Moved repeated step validation into a helper method.

* Add danish translations

---------

Co-authored-by: Mole <nikolajlauridsen@protonmail.ch>
2025-02-25 13:33:20 +01:00

20 lines
495 B
C#

namespace Umbraco.Cms.Core.PropertyEditors;
/// <summary>
/// Represents the configuration for the slider value editor.
/// </summary>
public class SliderConfiguration
{
[ConfigurationField("enableRange")]
public bool EnableRange { get; set; }
[ConfigurationField("minVal")]
public decimal MinimumValue { get; set; }
[ConfigurationField("maxVal")]
public decimal MaximumValue { get; set; }
[ConfigurationField("step")]
public decimal Step { get; set; }
}