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 |
|
|
src/Form/Field/Editor.php 1 location
|
@@ 56-62 (lines=7) @@
|
53 |
|
return $this->options(['language' => $dir]); |
54 |
|
} |
55 |
|
|
56 |
|
public function render() |
57 |
|
{ |
58 |
|
$options = json_encode($this->options); |
59 |
|
$this->script = "CKEDITOR.replace('{$this->column}', $options);"; |
60 |
|
|
61 |
|
return parent::render(); |
62 |
|
} |
63 |
|
} |
64 |
|
|