kak-panel
this extension is for generating html panel via boostrap 3x+ for Yii2 framework, (*1)
Install
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require kak/panel "^1.0"
or add, (*4)
"kak/panel": "^1.0"
to the require section of your composer.json
file., (*5)
Usage
($model->isNewRecord ? 'Create' : ' Update'), // title panel
'slimScroll' => false, // enable slim scroll plugin (default false)
'slimOptions' => [], // slim scroll options for data-attr
'options' => [
'class' => Panel::CSS_CLASS_WARNING
], // attr tag panel
'heading' => true, // show/hide header title (default true)
'headerColumn' => 'string content', // additional column on the right position for header
'headerIcon' => 'string classes or html tag content',
'headerTag' => 'h4',
'header' => 'header string',
'footer' => 'footer string',
'bodyOptions' => [], // the HTML attributes for the body-panel tag.
'templateHeader' => '{columns}
',
])?>
Or, (*6)
= Panel::widget([
'title' => 'title panel',
'content' => 'html content'
])?>