PHP code example of loveorigami / yii2-slimscroll-widget

1. Go to this page and download the library: Download loveorigami/yii2-slimscroll-widget library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

loveorigami / yii2-slimscroll-widget example snippets


use lo\widgets\SlimScroll;

<?= SlimScroll::widget([
	'options'=>[
		'height'=>'250px'
	]
]); 

    private static $default=[
        'height' => '350px',
        
        //'width'=> '250px',
        //'size' => '10px',
        //'position' => 'left',
        //'color' => '#ffcc00',
        //'distance' => '20px',
        //'start' => '$('#child_image_element')',

        'alwaysVisible' => true,
        'railVisible' => true,
        'railColor' => '#222',
        'railOpacity' => '0.3',
        'wheelStep' => 10,
        'allowPageScroll' => true,
        'disableFadeOut' => false
    ];

$ php composer.phar