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

dev-master 2017-09-28 05:47 UTC

This package is not auto-updated.

Last update: 2024-05-12 02:29:54 UTC


README

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