amass/yii2-bootstrap-panel-widget

Yii2 Bootstrap Panel

v1.0.0 2015-07-04 07:24 UTC

This package is not auto-updated.

Last update: 2024-05-01 07:24:29 UTC


README

Yii2 Bootstrap Panel

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist amass/yii2-bootstrap-panel-widget "dev-master"

or add

"amass/yii2-bootstrap-panel-widget": "dev-master"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= \amass\panel\Panel::widget([
         'title' => true, // show header or false not showing
         'headerTitle' => 'title', // Title text can use tag
         'content' => '' // some content in body
         'footer' => false, // show footer or false not showing
         'footerTitle' => 'text', // Title for footer
         'type' => true, // get style for panel \amass\panel::TYPE_DEFAULT  default
]); ?>

Or can use begin end widget


<?= \amass\panel\Panel::begin([
         'title' => true, // show header or false not showing
         'headerTitle' => 'title', // Title text can use tag
         'content' => '' // some content in body
         'footer' => false, // show footer or false not showing
         'footerTitle' => 'text', // Title for footer
         'type' => true, // get style for panel \amass\panel::TYPE_DEFAULT  default
]); ?>

...
...
...


<?= \amass\panel\Panel::end(); ?>