Class SliderField<T>
Represents a slider field.
public class SliderField<T> : TrinityField<SliderField<T>, T>, ITrinityComponent, ITrinityField, IFormComponent
Type Parameters
T
- Inheritance
-
TrinityComponent<SliderField<T>, T>TrinityField<SliderField<T>, T>SliderField<T>
- Implements
- Derived
- Inherited Members
Constructors
SliderField(string)
public SliderField(string columnName)
Parameters
columnName
string
Properties
ComponentName
The component name in the front-end side.
public override string ComponentName { get; }
Property Value
Max
Gets or sets the maximum value of the slider field.
public int Max { get; protected set; }
Property Value
Min
Gets or sets the minimum value of the slider field.
public int Min { get; protected set; }
Property Value
Orientation
Gets or sets the orientation of the slider field.
public string Orientation { get; protected set; }
Property Value
Step
Gets or sets the step of the slider field.
public int Step { get; protected set; }
Property Value
Methods
SetMax(int)
Sets the maximum value of the slider field.
public SliderField<T> SetMax(int max)
Parameters
max
intThe maximum value of the slider field.
Returns
- SliderField<T>
The current instance of the SliderField<T> class.
SetMin(int)
Sets the minimum value of the slider field.
public SliderField<T> SetMin(int min)
Parameters
min
intThe minimum value of the slider field.
Returns
- SliderField<T>
The current instance of the SliderField<T> class.
SetOrientation(OrientationType)
Sets the orientation of the slider field.
public SliderField<T> SetOrientation(OrientationType orientation)
Parameters
orientation
OrientationTypeThe orientation of the slider field.
Returns
- SliderField<T>
The current instance of the SliderField<T> class.
SetStep(int)
Sets the step of the slider field.
public SliderField<T> SetStep(int step)
Parameters
step
intThe step of the slider field.
Returns
- SliderField<T>
The current instance of the SliderField<T> class.