public function render() { $this->script = "\$('.{$this->id}').bootstrapSwitch();"; return parent::render()->with(['values' => $this->values]); }