wonail / yii2-widget-scrolltop
回到顶部小部件
Installs: 187
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Type:yii2-extension
Requires
- rmrevin/yii2-fontawesome: ~2.9
- wonail/yii2-base: ~0.0.1
This package is not auto-updated.
Last update: 2025-03-30 07:24:40 UTC
README
回到顶部小部件
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist wonail/yii2-widget-scrolltop "*"
or add
"wonail/yii2-widget-scrolltop": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \wonail\scrolltop\ScrollTop::widget([ 'btnColor' => 'btn-success', 'options' => [ 'style' => [ 'bottom' => '50px' ] ] ]) ?>