using System.ComponentModel; using umbraco.cms.businesslogic.datatype; namespace umbraco.editorControls.Slider { /// /// The options for the Slider data-type. /// public class SliderOptions : AbstractOptions { /// /// Initializes a new instance of the class. /// public SliderOptions() : base() { } /// /// Initializes a new instance of the class. /// /// if set to true [loads defaults]. public SliderOptions(bool loadDefaults) : base(loadDefaults) { } /// /// Gets or sets a value indicating whether [enable range]. /// /// true if [enable range]; otherwise, false. [DefaultValue(false)] public bool EnableRange { get; set; } /// /// Gets or sets a value indicating whether [enable step]. /// /// true if [enable step]; otherwise, false. [DefaultValue(true)] public bool EnableStep { get; set; } /// /// Gets or sets the max value. /// /// The max value. [DefaultValue(100)] public double MaxValue { get; set; } /// /// Gets or sets the min value. /// /// The min value. [DefaultValue(0)] public double MinValue { get; set; } /// /// Gets or sets the orientation. /// /// The orientation. [DefaultValue("hortizontal")] public string Orientation { get; set; } /// /// Gets or sets the range value. /// /// The range value. [DefaultValue("")] public string RangeValue { get; set; } /// /// Gets or sets the step. /// /// The step. [DefaultValue(5)] public double StepValue { get; set; } //public int StepValue { get; set; } /// /// Gets or sets the value. /// /// The value. [DefaultValue(50)] public double Value { get; set; } /// /// Gets or sets the second value. /// /// The second value. [DefaultValue(0)] public double Value2 { get; set; } /// /// Gets or sets the Database Storage Type /// [DefaultValue(DBTypes.Integer)] public DBTypes DBType { get; set; } } }