2017 © Pedro Peláez
 

yii2-extension yii2-jquery-loading-overlay

Widgets for https://gasparesganga.com/labs/jquery-loading-overlay

image

bscheshirwork/yii2-jquery-loading-overlay

Widgets for https://gasparesganga.com/labs/jquery-loading-overlay

  • Wednesday, July 25, 2018
  • by bscheshirwork
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Widgets for jQuery LoadingOverlay asset

Installation

The preferred way to install this extension is through composer., (*1)

add, (*2)

"bscheshirwork/yii2-jquery-loading-overlay": "@dev"

to the require section of your composer.json file., (*3)

Usage

@see jQuery LoadingOverlay for possible clientOptions, (*4)

We can use php notation of clientOptions, (*5)

<?= \bscheshirwork\jlo\LoadingOverlay::widget([
    'selector' => '#p1',
    'clientOptions' => [
        'image' => '<svg><defs><style>.a{fill:#c5baff;}</style></defs><rect class="a" width="133" height="41"/></svg>',
    ]
]); ?>

also we can use js notation, (*6)

<?= \bscheshirwork\jlo\LoadingOverlay::widget([
    'clientOptions' => <<<JS
{
        image                   : '<svg><defs><style>.a{fill:#c5baff;}</style></defs><rect class="a" width="133" height="41"/></svg>',
        imageAnimation          : "2500ms rotate_right",             // String/Boolean
        imageAutoResize         : true,                              // Boolean
        imageResizeFactor       : 1,                                 // Float
        imageColor              : "#202020",                         // String/Array/Boolean
        imageClass              : "",                                // String/Boolean
        imageOrder              : 1,                                 // Integer
}
JS
]); ?>

The Versions

25/07 2018

dev-master

9999999-dev

Widgets for https://gasparesganga.com/labs/jquery-loading-overlay

  Sources   Download

MIT

The Requires

 

by Avatar bscheshir

yii2 widget loading overlay