Class hscstudio\heart\widgets\Box
Inheritance | hscstudio\heart\widgets\Box » yii\bootstrap\Widget |
---|---|
Available since version | 2.0 |
Box renders a Box HTML component.
Any content enclosed between the \hscstudio\heart\widgets\begin() and \hscstudio\heart\widgets\end() calls of Box
is treated as the content of the box.
Box::begin([
'type'=>'small', // ,small, solid, tiles
'bgColor'=>'aqua', // , aqua, green, yellow, red, blue, purple, teal, maroon, navy, light-blue
'options' => [],
'headerOptions' => [
'button' => ['collapse','remove'],
'position' => 'right', //right, left
'color' => '', //primary, info, warning, success, danger
'class' => '',
],
'header' => '',
'bodyOptions' => [],
'icon' => '',
'link' => '',
'footerOptions' => [],
'footer' => 'More info <i class="fa fa-arrow-circle-right"></i>',
]);
?>
Your content of the box here
<?php
Box::end();
See also http://almsaeedstudio.com/AdminLTE/pages/widgets.html.
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$bgColor | hscstudio\heart\widgets\Box | ||
$bodyOptions | hscstudio\heart\widgets\Box | ||
$footer | hscstudio\heart\widgets\Box | ||
$footerOptions | hscstudio\heart\widgets\Box | ||
$header | hscstudio\heart\widgets\Box | ||
$headerOptions | hscstudio\heart\widgets\Box | ||
$icon | hscstudio\heart\widgets\Box | ||
$link | hscstudio\heart\widgets\Box | ||
$options | array | The HTML attributes for the widget container tag. | hscstudio\heart\widgets\Box |
$type | hscstudio\heart\widgets\Box |
Public Methods
Method | Description | Defined By |
---|---|---|
init() | Initializes the widget. | hscstudio\heart\widgets\Box |
run() | Renders the widget. | hscstudio\heart\widgets\Box |
Property Details
The HTML attributes for the widget container tag. The following special options are recognized:
- tag: string, defaults to "div", the name of the container tag.
See also \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered.