tejrajs / yii2-collapse-widget
collapse widget
Installs: 185
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Language:CSS
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-14 16:33:01 UTC
README
collapse widget
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist tejrajs/yii2-collapse-widget "*"
or add
"tejrajs/yii2-collapse-widget": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
use tejrajs\collapsewidget\CollapseWidget; <?php CollapseWidget::begin([ 'title'=>'Title', //'options' => [ 'data-collapse-closed' => 'true'], ]); ?> <body> <?php CollapseWidget::end();?>