* 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>
20 lines
495 B
C#
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; }
|
|
}
|