mhunesi/yii2-perfect-scrollbar

Yii2 Perfect Scrollbar Extension

Installs: 264

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

pkg:composer/mhunesi/yii2-perfect-scrollbar

1.0.0 2020-07-02 18:41 UTC

This package is auto-updated.

Last update: 2025-09-29 02:22:07 UTC


README

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() ?>