basepodapps/yii2-feathericons 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

basepodapps/yii2-feathericons

最新稳定版本:1.1.0

Composer 安装命令:

composer require basepodapps/yii2-feathericons

包简介

An asset bundle of Feather Icons, a beautiful opensource icon set, made for use with Yii2.

README 文档

README

An asset bundle of Feather Icons, a beautiful open source icon set, made for use with Yii2.

Installation

The preferred way to install this extension is through Composer.

Either run

php composer.phar require basepodapps/yii2-feathericons:^1.0.0

or add

"basepodapps/yii2-feathericons": "^1.0.0"

to the require section of your composer.json file.

Usage

Once the extension is installed, create a custom asset bundle and use it in your app:

<?php

namespace app\assets;

use yii\web\AssetBundle;

class FeatherIconsAsset extends AssetBundle
{
    public $depends = [
        'basepodapps\feathericons\FeatherIconsAsset'
    ];
}

Or, directly register the asset bundle in your views:

use app\assets\AppAsset;
use basepodapps\feathericons\FeatherIconsAsset;

AppAsset::register($this);
FeatherIconsAsset::register($this);

You can also use it together with Krajee's Yii2-Icons extension in your views:

use kartik\icons\Icon;
Icon::map($this);

// Add 'Feather Icons' as custom icon framework
Icon::addFramework('feather', [
    'class' => '\basepodapps\feathericons\FeatherIconsAsset',
    'prefix' => 'feather-icon-',
]);
Icon::map($this, 'feather');

---

// Sample usage
<?= Icon::show('users', [
    'class'=>'page-header-icon',
    'data-feather' => 'users',
    'framework' => 'feather'
]) ?>

feather-icons@4.29.0

统计信息

  • 总下载量: 2.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-11