yii2-slimscroll-widget SlimScroll widget for Yii 2

  1. Installation
  2. Usage
  3. Resources

SlimScroll is a small (4.6KB) jQuery plugin that transforms any div into a scrollable area with a nice scrollbar - similar to the one Facebook and Google started using in their products recently. slimScroll doesn't occupy any visual space as it only appears on a user initiated mouse-over. User can drag the scrollbar or use mouse-wheel to change the scroll value. For more information please visit SlimScroll

Installation

The preferred way to install this extension is through composer.

To install, either run

$ php composer.phar require loveorigami/yii2-slimscroll-widget "*"

or add

"loveorigami/yii2-slimscroll-widget": "*"

to the `require` section of your composer.json file.

Usage

<?php
use lo\widgets\SlimScroll;

echo SlimScroll::widget([
	'options'=>[
		'height'=>'250px'
	]
]); 
?>
<p>
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam rhoncus, felis interdum condimentum consectetur, nisl libero elementum eros, vehicula congue lacus eros non diam. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Vivamus mauris lorem, lacinia id tempus non, imperdiet et leo. Cras sit amet erat sit amet lacus egestas placerat. Aenean ultricies ultrices mauris ac congue
</p>
<?php
echo SlimScroll::end(); 
?>

Resources

0 0
2 followers
0 downloads
Yii Version: 2.0
License: BSD-2-Clause
Category: User Interface
Developed by: loveorigami
Created on: Aug 26, 2015
Last updated: 2 years ago

Related Extensions