kl83/yii2-baron-scrollbar

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

Installs: 59

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

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

This package is auto-updated.

Last update: 2024-11-09 14:19:59 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