jakim-pj / yii2-widgets-adminlte2
Set of widgets for AdminLTE2
Installs: 77
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-11 17:31:50 UTC
README
Set of widgets for AdminLTE2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist jakim-pj/yii2-widgets-adminlte2
or add
"jakim-pj/yii2-widgets-adminlte2": "^1.0"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
InfoBox::widget([ 'color' => 'bg-green', 'icon' => 'fa-calendar-check-o', 'text' => 'Last Check In', 'number' => [ Yii::$app->formatter->asDatetime($lastCheckIn->start), //line #1 $lastCheckIn->user->fullName // line #2 ] ]);
SmallBox::widget([ 'color' => 'bg-red', 'icon' => 'fa-exclamation-triangle', 'header' => $formatter->asInteger($incidents), 'text' => 'Total number of incidents', 'footerUrl' => Url::to(['incident/index']), ]);