當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Modal::init方法代碼示例

本文整理匯總了PHP中yii\bootstrap\Modal::init方法的典型用法代碼示例。如果您正苦於以下問題:PHP Modal::init方法的具體用法?PHP Modal::init怎麽用?PHP Modal::init使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在yii\bootstrap\Modal的用法示例。


在下文中一共展示了Modal::init方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: init

 public function init()
 {
     $this->options['class'] = 'prepodavatel-peresechenie-modal fade';
     $this->header = Html::tag('h4', 'Пересечение занятости преподавателя');
     $this->footer = Html::tag('a', 'Ок', ['class' => 'btn btn-primary ok-btn', 'data-dismiss' => 'modal']);
     parent::init();
 }
開發者ID:tsyrya,項目名稱:mybriop,代碼行數:7,代碼來源:PrepodavatelPeresechenieModal.php

示例2: init

 public function init()
 {
     $this->options['class'] = 'tema-picker fade';
     $this->header = Html::tag('h4', 'Выбор темы');
     $this->footer = $this->renderButtons();
     parent::init();
 }
開發者ID:tsyrya,項目名稱:mybriop,代碼行數:7,代碼來源:TemaPicker.php

示例3: init

 /**
  * Initializes the widget.
  */
 public function init()
 {
     $this->options = array_merge(['class' => 'modal-fs fade'], $this->options);
     $padding = $this->modalBodyPadding === false ? '0' : $this->modalBodyPadding;
     $this->getView()->registerCss("\n        .modal-fs .modal-body{\n          padding:{$padding};\n        }\n       ");
     parent::init();
     FullscreenModalAsset::register($this->getView());
 }
開發者ID:yii2assets,項目名稱:yii2-fullscreen-modal,代碼行數:11,代碼來源:FullscreenModal.php

示例4: run

 public function run()
 {
     switch (empty($this->content)) {
         case false:
             parent::init();
             echo $this->content;
             parent::run();
             break;
         default:
             echo $this->renderTogglebutton() . Html::tag('div', Html::tag('div', Html::tag('div', $this->renderHeader() . $this->content, $this->contentOptions), $this->dialogOptions), $this->options);
             break;
     }
 }
開發者ID:nhatvuvan,項目名稱:yii2-widgets,代碼行數:13,代碼來源:Modal.php

示例5: init

 public function init()
 {
     if ($this->id) {
         $this->options['id'] = $this->id;
     }
     if ($this->header) {
         $this->header = Html::tag('h4', $this->header, ['class' => 'modal-title']);
     }
     if ($this->btn_close) {
         $close_btn = Html::tag('button', __('Close'), ['type' => 'button', 'class' => 'btn btn-default', 'data-dismiss' => 'modal']);
         $this->footer .= PHP_EOL . $close_btn;
     }
     parent::init();
 }
開發者ID:vsguts,項目名稱:crm,代碼行數:14,代碼來源:Modal.php

示例6: init

 public function init()
 {
     parent::init();
     AjaxModalAsset::register($this->view);
 }
開發者ID:claudejanz,項目名稱:yii2-toolbox,代碼行數:5,代碼來源:AjaxModal.php

示例7: init

 public function init()
 {
     if (!$this->scenario) {
         throw new InvalidConfigException("Attribute 'scenario' is required");
     }
     Html::addCssClass($this->options['class'], 'text-left');
     $this->initAdditionalOptions();
     if ($this->handleSubmit !== false) {
         $this->registerClientScript();
     }
     parent::init();
 }
開發者ID:hiqdev,項目名稱:hipanel-core,代碼行數:12,代碼來源:AjaxModal.php


注:本文中的yii\bootstrap\Modal::init方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。