dhiraaj / yii2-malihu-custom-scrollbar-plugin
为 Yii2 框架提供的 yii2-malihu-custom-scrollbar-plugin 资产包
1.0
2016-09-13 11:43 UTC
Requires
- php: >=5.4.0
- bower-asset/jquery: 2.2.*@stable | 2.1.*@stable | 1.11.*@stable | 1.12.*@stable
- bower-asset/malihu-custom-scrollbar-plugin: ^3.1
- yiisoft/yii2: 2.0.*
This package is auto-updated.
Last update: 2024-09-09 02:40:29 UTC
README
此扩展提供了一个资产包,包含了 jquery.mCustomScrollbar js 和 css,用于 Yii 框架 2.0 应用程序。
有关许可证信息,请查看 LICENSE 文件。
支持
安装
安装此扩展的首选方式是通过 composer。
运行以下命令之一:
composer require "dhiraj/yii2-malihu-custom-scrollbar-plugin:~1.0"
或者将以下内容添加到您的 composer.json
文件的 require
部分:
"dhiraj/yii2-malihu-custom-scrollbar-plugin": "~1.0",
to the require section of your composer.json file.
使用方法
在视图
traversient\yii\customscrollbar\AssetBundle::register($this);
或作为主应用程序资产包的依赖项
class AppAsset extends AssetBundle { // ... public $depends = [ // ... '\traversient\yii\customscrollbar\AssetBundle' ]; }
,此时 jquery.pipelining.js 和 css 将被添加到您的页面加载中。