public function render() { $option = json_encode($this->options); $this->script = "\$('#{$this->id}').ionRangeSlider({$option})"; return parent::render(); }