Based on scrollToTop jQuery plugin.
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
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(); ?>
Ivan Yakovlev, e-mail: [email protected]