https://github.com/xutl/yii2-back-to-top-widget
https://github.com/xutl/yii2-back-to-top-widget
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/xutl/yii2-back-to-top-widget
- Owner: xutl
- License: mit
- Created: 2017-10-11T02:46:58.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-11T03:16:09.000Z (over 7 years ago)
- Last Synced: 2025-02-20T11:05:53.243Z (3 months ago)
- Language: PHP
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# yii2-back-to-top-widget
A Yii2 widget to add back-to-top button. Base on the .animate jQuery function.
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).Either run
```
php composer.phar require --prefer-dist xutl/yii2-back-to-top-widget "*"
```or add
```
"xutl/yii2-back-to-top-widget": "*"
```to the require section of your `composer.json` file.
Usage
------------
```php
= \xutl\backtop\BackTop::widget() ?>
``````php
= BackTop::widget([
'options' => 'custom-css class-name'
]); ?>
``````php
= BackTop::widget([
'tagContent' => '',
'options' => 'custom-css class-name',
]); ?>
```