Jellygnite\SliderField\SliderField
Field for a numeric slider
- Author: Damian Mooyman
Synopsis
class SliderField
extends TextField
{
- // members
- protected string $orientation = 'horizontal';
- protected $maximum;
- protected $minimum;
- protected $step;
- protected $unit;
- // methods
- public void Type()
- public string getOrientation()
- public SliderField setOrientation()
- public void __construct()
- public integer getMaximum()
- public void setMaximum()
- public integer getMinimum()
- public void setMinimum()
- public integer getStep()
- public void setStep()
- public string getUnit()
- public void setUnit()
- public void Field()
- public void getAttributes()
Hierarchy
Extends
- SilverStripe\Forms\TextField
Members
protected
- $maximum
—
integer
Max slider value - $minimum
—
integer
Minimum slider value - $orientation
- $step
—
integer
Step of slider - $unit
—
string
Unit of slider
Methods
public
- __construct() — Create a SliderField object
- Field()
- Type()
- getAttributes()
- getMaximum() — Get the maximum range value
- getMinimum() — Get the minimum range value
- getOrientation() — Gets the orientation of this field
- getStep() — Get the step value
- getUnit() — Get the unit label
- setMaximum() — Set the maximum range value
- setMinimum() — Set the minimum range value
- setOrientation() — Set the orientation of this field to horizontal or vertical
- setStep() — Set the step value
- setUnit() — Set the unit label