/** * Initializes the widget. */ public function init() { parent::init(); Yii::app()->bootstrap->registerAlert(); if (!isset($this->htmlOptions['id'])) { $this->htmlOptions['id'] = $this->getId(); } }
/** * Initializes the widget. */ public function init() { parent::init(); $this->registerScriptFile('jquery.ui.bootmodal.js'); $id = $this->getId(); if (isset($this->htmlOptions['id'])) { $id = $this->htmlOptions['id']; } else { $this->htmlOptions['id'] = $id; } $options = !empty($this->options) ? CJavaScript::encode($this->options) : ''; $this->registerScript(__CLASS__ . '#' . $id, "jQuery('#{$id}').bootModal({$options});"); echo CHtml::openTag($this->tagName, $this->htmlOptions) . PHP_EOL; }
/** * Initializes the widget. */ public function init() { parent::init(); Yii::app()->bootstrap->registerModal(); if (!isset($this->htmlOptions['id'])) { $this->htmlOptions['id'] = $this->getId(); } if (isset($this->htmlOptions['class'])) { $this->htmlOptions['class'] .= ' modal'; } else { $this->htmlOptions['class'] = 'modal'; } if (Yii::app()->bootstrap->isPluginRegistered(Bootstrap::PLUGIN_TRANSITION)) { $this->htmlOptions['class'] .= ' fade'; } echo CHtml::openTag('div', $this->htmlOptions) . PHP_EOL; }
/** * Initializes the widget. */ public function init() { parent::init(); $this->registerScriptFile('jquery.ui.bootalert.js'); }
/** * Initializes the widget. */ public function init() { parent::init(); $this->registerScriptFile('jquery.ui.boottwipsy.js'); $this->registerScriptFile('jquery.ui.bootpopover.js'); }