Yii2 Asset for Material Design Icons.
, (*1)
This is an Yii framework 2.0 asset for the Material Design Icons., (*2)
Installation
The preferred way to install this extension is through composer., (*3)
Either run, (*4)
php composer.phar require yii-ui/yii2-material-design-icons
or add, (*5)
"yii-ui/yii2-material-design-icons": "~1.0.0"
to the require section of your composer.json
file., (*6)
Usage
in your layout file (ex. views/layouts/main.php):, (*7)
\yiiui\yii2materialdesignicons\MaterialDesignIconsAsset::register($this);
or as dependency in your app asset bundle:, (*8)
namespace app\assets;
use yii\web\AssetBundle;
class AppAsset extends AssetBundle
{
public $sourcePath = '@app/assets';
public $js = [
'js/main.js',
];
public $css = [
'css/main.scss',
];
public $depends = [
'yiiui\yii2materialdesignicons\MaterialDesignIconsAsset'
];
}
More Examples will be added soon at https://www.yii-ui.com/yii2-material-design-icons.
For full list of icons see Material Design Icons Documentation., (*9)
Documentation
Documentation will be added soon at https://www.yii-ui.com/yii2-material-design-icons., (*10)
License
yii2-material-design-icons is released under the MIT License. See the LICENSE.md for details., (*11)