bscheshirwork / yii2-jquery-loading-overlay
Widgets for https://gasparesganga.com/labs/jquery-loading-overlay
Installs: 142
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- bower-asset/gasparesganga-jquery-loading-overlay: ^2.1.5
- yiisoft/yii2: >=2.0.15
This package is auto-updated.
Last update: 2024-10-23 02:22:44 UTC
README
Installation
The preferred way to install this extension is through composer.
add
"bscheshirwork/yii2-jquery-loading-overlay": "@dev"
to the require section of your composer.json
file.
Usage
@see jQuery LoadingOverlay for possible clientOptions
We can use php notation of clientOptions
<?= \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
<?= \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 ]); ?>