本文整理汇总了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();
}
示例2: init
public function init()
{
$this->options['class'] = 'tema-picker fade';
$this->header = Html::tag('h4', 'Выбор темы');
$this->footer = $this->renderButtons();
parent::init();
}
示例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());
}
示例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;
}
}
示例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();
}
示例6: init
public function init()
{
parent::init();
AjaxModalAsset::register($this->view);
}
示例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();
}