/** * Registers the client assets for the [[CheckboxX]] widget. */ public function registerAssets() { $view = $this->getView(); CheckboxXAsset::register($view); if (!empty($this->pluginOptions['theme']) && $this->pluginOptions['theme'] === 'krajee-flatblue') { KrajeeFlatBlueThemeAsset::register($view); } $this->registerPlugin($this->pluginName); }
/** * Registers the needed assets * * @return void */ public function registerAssets() { $id = 'jQuery("#' . $this->options['id'] . '")'; $view = $this->getView(); CheckboxXAsset::register($view); $this->registerPlugin($this->_pluginName); }