These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Encore\Admin\Form\Field; |
||
4 | |||
5 | use Encore\Admin\Form\Field; |
||
6 | |||
7 | class Slider extends Field |
||
8 | { |
||
9 | protected static $css = [ |
||
10 | '/vendor/laravel-admin/AdminLTE/plugins/ionslider/ion.rangeSlider.css', |
||
11 | '/vendor/laravel-admin/AdminLTE/plugins/ionslider/ion.rangeSlider.skinNice.css', |
||
12 | ]; |
||
13 | |||
14 | protected static $js = [ |
||
15 | '/vendor/laravel-admin/AdminLTE/plugins/ionslider/ion.rangeSlider.min.js', |
||
16 | ]; |
||
17 | |||
18 | protected $options = [ |
||
19 | 'type' => 'single', |
||
20 | 'prettify' => false, |
||
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(); |
||
0 ignored issues
–
show
Bug
Compatibility
introduced
by
Loading history...
|
|||
31 | } |
||
32 | } |
||
33 |