Skip to content

armandoricky/yii2-tiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2-Tiles

example

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>'
]);
?>