uran1980/yii2-scroll-to-top

Scroll-to-top button widget for Yii2

Installs: 2 751

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 1

Type:yii2-extension

0.0.2 2015-03-07 00:00 UTC

This package is auto-updated.

Last update: 2024-10-13 04:26:11 UTC


README

Based on scrollToTop jQuery plugin.

screen-01

Installation

Composer

The preferred way to install this extension is through Composer.

Either run

php composer.phar require uran1980/yii2-scroll-to-top "dev-master"

or add

"uran1980/yii2-scroll-to-top": "dev-master"

to the require section of your composer.json

Usage

To activate this widget on all pages add this line to you project main layout ...\frontend\views\layouts\main.php before Yii endBody() block:

<?php echo uran1980\yii\widgets\scrollToTop\ScrollToTop::widget(); ?>

Author

Ivan Yakovlev, e-mail: uran1980@gmail.com