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
Requires
- bower-asset/scroll-to-top: *
- yiisoft/yii2: ~2
This package is auto-updated.
Last update: 2024-12-13 04:48:15 UTC
README
Based on scrollToTop jQuery plugin.
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