Firesphere\RangeField\RangeField
Class RangeField
A rangefield gives the user the option to select a value from a range, or set a range
Synopsis
class RangeField
extends FormField
{
- // members
- protected array|int $start = ;
- protected integer $min = 0;
- protected integer $max = 100;
- protected array $range = ;
- protected bool $snap = false;
- protected array $data = ;
- protected integer $density = 4;
- protected bool $showPips = true;
- protected int|bool $step;
- protected string $unit = '';
- protected integer $decimalPlaces = 2;
- // methods
- public void __construct()
- public DBHTMLText field()
- public void setFormat()
- protected void setupData()
- public array|int getStart()
- public void setStart()
- public array getMin()
- public void setMin()
- public int getMax()
- public void setMax()
- public array getRange()
- public void setRange()
- public bool isSnap()
- public void setSnap()
- public array getData()
- public void setData()
- public int getDensity()
- public void setDensity()
- public bool isShowPips()
- public void setShowPips()
- public bool|int getStep()
- public void setStep()
- public string getUnit()
- public void setUnit()
- public int getDecimalPlaces()
- public void setDecimalPlaces()
Hierarchy
Extends
- SilverStripe\Forms\FormField
Tasks
Line | Task |
---|---|
16+ | support for multiple handles, it seems not to work |
113 | find a way to get this a bit nicer. It's the only way to get it in without breaking on submit |
Members
protected
- $data — array
- $decimalPlaces — int
- $density — int
- $max — int
- $min — int
- $range — array
- $showPips — Firesphere\RangeField\bool
- $snap — Firesphere\RangeField\bool
- $start — Firesphere\RangeField\array|int
- $step — Firesphere\RangeField\int|bool
- $unit — string
Methods
protected
public
- __construct() — RangeField constructor.
- field()
- getData()
- getDecimalPlaces()
- getDensity()
- getMax()
- getMin()
- getRange()
- getStart()
- getStep()
- getUnit()
- isShowPips()
- isSnap()
- setData()
- setDecimalPlaces()
- setDensity()
- setFormat()
- setMax()
- setMin()
- setRange()
- setShowPips()
- setSnap()
- setStart()
- setStep()
- setUnit()