armrck / yii2-tiles
A Yii2 widget for the dashboard tiles.
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Language:CSS
Type:yii2-widget
Requires
- yiisoft/yii2: ^2.0.0
- yiisoft/yii2-bootstrap: ^2.0.0
This package is not auto-updated.
Last update: 2024-05-12 02:29:54 UTC
README
A Yii2 widget for the dashboard tiles.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist armrck/yii2-tyles "*"
or add
"armrck/yii2-tiles": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= Tiles::widget([ 'icon' => '<i class="fa fa-database"></i>', // icon 'iconBgColor' => '#ffa726', // hex color 'category' => 'Space Used on DB', // category of stats info 'title' => 670, // main stats info 'title_small' => 'MB', // complement for stats info 'moreInfo' => 'This info only appear if the icon "info" is clicked' 'textFooter' => '<i class="fa fa-line-chart"></i> <a href="#">Show more details</a>' ]); ?>