kl83/yii2-baron-scrollbar

Baron — a small, fast and crossbrowser custom scrollbar with native system scroll mechanic.

Installs: 20

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2018-07-28 21:22 UTC

README

Baron — a small, fast and crossbrowser custom scrollbar with native system scroll mechanic.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require kl83/yii2-baron-scrollbar *

or add

"kl83/yii2-baron-scrollbar": "*"

to the require section of your composer.json file.

Usage

<?php \kl83\widgets\Scrollbar::begin([
    'theme' => \kl83\widgets\Scrollbar::THEME_MACOSX,
    'options' => [
        'style' => 'height: 30vh',
    ],
    'baronOptions' => [
        'cssGuru' => false,
    ],
]); ?>
<p>Some scrollable content...</p>
<p>Height of parent DOM element must be set.</p>
<?php \kl83\widgets\Scrollbar::end(); ?>

License

MIT License