kl83/yii2-baron-scrollbar Baron — a small, fast and crossbrowser custom scrollbar with native system scroll mechanic.

Yii2 baron scrollbar widget

  1. Installation
  2. Usage
  3. License

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 php composer.phar require kl83/yii2-baron-scrollbar or addphp "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

0 0
1 follower
55 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: Aleksandr Solovyov
Created on: Jul 28, 2018
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions