src/Form/Field/Editor.php 1 location
|
@@ 46-52 (lines=7) @@
|
| 43 |
|
return $this->options(['language' => $dir]); |
| 44 |
|
} |
| 45 |
|
|
| 46 |
|
public function render() |
| 47 |
|
{ |
| 48 |
|
$options = json_encode($this->options); |
| 49 |
|
$this->script = "CKEDITOR.replace('{$this->column}', $options);"; |
| 50 |
|
|
| 51 |
|
return parent::render(); |
| 52 |
|
} |
| 53 |
|
} |
| 54 |
|
|
src/Form/Field/Slider.php 1 location
|
@@ 24-31 (lines=8) @@
|
| 21 |
|
'hasGrid' => true, |
| 22 |
|
]; |
| 23 |
|
|
| 24 |
|
public function render() |
| 25 |
|
{ |
| 26 |
|
$option = json_encode($this->options); |
| 27 |
|
|
| 28 |
|
$this->script = "$('{$this->getElementClassSelector()}').ionRangeSlider($option)"; |
| 29 |
|
|
| 30 |
|
return parent::render(); |
| 31 |
|
} |
| 32 |
|
} |
| 33 |
|
|