| 1 | <?php |
||
| 10 | class Moo_EditableFieldNumeric extends Moo_EditableField |
||
| 11 | { |
||
| 12 | private static $singular_name = 'Numeric Field'; |
||
| 13 | private static $plural_name = 'Numeric Fields'; |
||
| 14 | protected $customSettingsFields = [ |
||
| 15 | 'MinValue', 'MaxValue', |
||
| 16 | ]; |
||
| 17 | 1 | protected function initFormField() |
|
| 18 | { |
||
| 19 | 1 | $field = new NumericField($this->Name, $this->Title); |
|
| 20 | 1 | $field->addExtraClass('number'); |
|
| 21 | |||
| 22 | 1 | return $field; |
|
| 23 | } |
||
| 24 | |||
| 25 | public function getFieldValidationOptions() |
||
| 35 | } |
||
| 36 |