is7/yii2-bootstrap-panel
Composer 安装命令:
composer require is7/yii2-bootstrap-panel
包简介
Yii2 Bootstrap Panel
README 文档
README
Yii2 Bootstrap panel widget.
Installation
The preferred way to install this extension is through composer.
Either run
$ composer require is7/yii2-bootstrap-panel "dev-master"
or add
"is7/yii2-bootstrap-panel": "dev-master"
to the require section of your composer.json file then run composer update.
Options
-
title title displayed in the head section of the panel.
-
titleOptions the tag options in terms of name-value pairs.
-
content content displayed in the body section of the panel.
-
footer content displayed in the footer section of the panel.
-
context context of the panel. Defaults to 'default'.
- info
- default
- danger
- primary
- success
-
collapsible whether the panel is collapsible. Defaults to false.
-
collapsed whether or not the panel is initially collapsed. Defaults to false.
-
buttons array of buttons, that will be added to the title.
-
minimizable whether to add minimize button, which collapse panel to minimum size. Defaults to false
-
panelOptions the tag options in terms of name-value pairs.
Examples
Basic Example
use is7\bootstrap\Panel; echo Panel::widget([ 'title' => 'My Panel', 'content' => '...', 'footer' => 'footer content' ]);
Extended example
use is7\bootstrap\Panel; echo Panel::begin([ 'title'=>'My Panel', 'collapsible' => true, 'context' => 'danger', 'footer'=>'footer content' ]); // the body Panel::end();
Panel with buttons
use is7\bootstrap\Panel; echo Panel::widget([ 'title'=>'My Panel', 'content' => '...', 'context' => 'success', 'collapsible' => true, 'minimizable' => true, 'buttons' => [ [ 'options' => [ 'class' => 'btn btn-default delete-button', 'title' => 'Delete Panel' ], 'icon' => 'trash' // Will be converted to the glyphicon-trash icon. HTML tag can be used instead ], ] ]);
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-04