Пример #1
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Yii::app()->bootstrap->registerAlert();
     if (!isset($this->htmlOptions['id'])) {
         $this->htmlOptions['id'] = $this->getId();
     }
 }
Пример #2
0
 /**
  * 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;
 }
Пример #3
0
 /**
  * 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;
 }
Пример #4
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->registerScriptFile('jquery.ui.bootalert.js');
 }
Пример #5
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->registerScriptFile('jquery.ui.boottwipsy.js');
     $this->registerScriptFile('jquery.ui.bootpopover.js');
 }