An open API service indexing awesome lists of open source software.

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

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',
]); ?>
```