edgardmessias/yii2-nprogress Slim progress bars for Ajax'y applications. Inspired by Google, YouTube, and Medium for Yii2 Framework.

extensionassetsnprogresspjax

Yii2 NProgress

Slim progress bars for Ajax'y applications. Inspired by Google, YouTube, and Medium for Yii2 Framework.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist edgardmessias/yii2-nprogress "*"

or add

"edgardmessias/yii2-nprogress": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your view code by :

<?php \edgardmessias\assets\nprogress\NProgressAsset::register($this); ?>

Customization

To change settings, simply add the following code in your configuration

'components' => [
    'assetManager' => [
        'bundles' => [
            'edgardmessias\assets\nprogress\NProgressAsset' => [
                'configuration' => [
                    'minimum' => 0.08,
                    'showSpinner' => true,
                ],
                'page_loading' => false,
                'pjax_events' => true,
                'jquery_ajax_events' => false,
            ],
        ],
    ],
],

Settings

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



0.3.0 is the latest of 3 releases



BSD-3-Clause license
Stats
7 github stars & 5 github forks
0 downloads in the last day
159 downloads in the last 30 days
16642 total downloads