PHP code example of mhunesi / yii2-perfect-scrollbar

1. Go to this page and download the library: Download mhunesi/yii2-perfect-scrollbar 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/ */

    

mhunesi / yii2-perfect-scrollbar example snippets


 \mhunesi\scrollbar\PerfectScrollbar::begin([
        'width' => '200px',
        'height' => '200px',
        'options' => [
            'class' => 'p-2 mb-5',
        ],
        'clientOptions' => [
            'wheelPropagation' => true
        ]
])