Skip to content

Yii2 Perject Scrollbar Widget. Perfect Scrollbar is minimalistic but perfect custom scrollbar plugin.

Notifications You must be signed in to change notification settings

mhunesi/yii2-perfect-scrollbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 Perfect Scrollbar

Yii2 Perfect Scrollbar Extension

Installation

The preferred way to install this extension is through composer.

Either run

composer require mhunesi/yii2-perfect-scrollbar "*"

or add

"mhunesi/yii2-perfect-scrollbar": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?php \mhunesi\scrollbar\PerfectScrollbar::begin([
        'width' => '200px',
        'height' => '200px',
        'options' => [
            'class' => 'p-2 mb-5',
        ],
        'clientOptions' => [
            'wheelPropagation' => true
        ]
]) ?>

    <p> HTML Content </p>

<?php \mhunesi\scrollbar\PerfectScrollbar::end() ?>

About

Yii2 Perject Scrollbar Widget. Perfect Scrollbar is minimalistic but perfect custom scrollbar plugin.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages