Class hscstudio\heart\widgets\Box

Inheritancehscstudio\heart\widgets\Box » yii\bootstrap\Widget
Available since version2.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 Methods

Hide inherited methods

MethodDescriptionDefined By
init() Initializes the widget. hscstudio\heart\widgets\Box
run() Renders the widget. hscstudio\heart\widgets\Box

Property Details

$bgColor public property
$bgColor 'default'
$bodyOptions public property
$footer public property
$footer ''
$footerOptions public property
$header public property
$header ''
$headerOptions public property
$headerOptions = ['button' => ['collapse''remove'], 'position' => 'right''color' => 'default''class' => '']
$icon public property
$icon 'fa fa-rocket'
$link '#'
$options public property

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.

$type public property
$type 'default'

Method Details

init() public method

Initializes the widget.

void init( )
run() public method

Renders the widget.

void run( )