Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bscheshirwork/yii2-jquery-loading-overlay

yii2 Widget for jQuery LoadingOverlay https://gasparesganga.com/labs/jquery-loading-overlay
https://github.com/bscheshirwork/yii2-jquery-loading-overlay

Last synced: about 15 hours ago
JSON representation

yii2 Widget for jQuery LoadingOverlay https://gasparesganga.com/labs/jquery-loading-overlay

Awesome Lists containing this project

README

        

# Widgets for jQuery LoadingOverlay asset

## Installation

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

add

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

to the require section of your `composer.json` file.

## Usage

@see [jQuery LoadingOverlay](https://gasparesganga.com/labs/jquery-loading-overlay) for possible clientOptions

We can use php notation of clientOptions
```php
= \bscheshirwork\jlo\LoadingOverlay::widget([
'selector' => '#p1',
'clientOptions' => [
'image' => '.a{fill:#c5baff;}',
]
]); ?>
```
also we can use js notation
```php
= \bscheshirwork\jlo\LoadingOverlay::widget([
'clientOptions' => <<.a{fill:#c5baff;}',
imageAnimation : "2500ms rotate_right", // String/Boolean
imageAutoResize : true, // Boolean
imageResizeFactor : 1, // Float
imageColor : "#202020", // String/Array/Boolean
imageClass : "", // String/Boolean
imageOrder : 1, // Integer
}
JS
]); ?>
```