项目作者: e-kevin

项目描述 :
回到顶部小部件
高级语言: PHP
项目地址: git://github.com/e-kevin/yii2-widget-scrolltop.git
创建时间: 2017-04-09T03:51:17Z
项目社区:https://github.com/e-kevin/yii2-widget-scrolltop

开源协议:BSD 3-Clause "New" or "Revised" License

下载


yii2-widget-scrolltop

回到顶部小部件

Installation

The preferred way to install this extension is through composer.

Either run

  1. php composer.phar require --prefer-dist wonail/yii2-widget-scrolltop "*"

or add

  1. "wonail/yii2-widget-scrolltop": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

  1. <?= \wonail\scrolltop\ScrollTop::widget([
  2. 'btnColor' => 'btn-success',
  3. 'options' => [
  4. 'style' => [
  5. 'bottom' => '50px'
  6. ]
  7. ]
  8. ]) ?>