execut/yii2-loading-overlay Yii2 loading overlay widget

Yii2 loading overlay widget

  1. Installation
  2. Usage
  3. Example
  4. License

Yii2 loading overlay javascript widget

Installation

The preferred way to install this extension is through composer.

Either run

$ php composer.phar require execut/yii2-loading-overlay "dev-master"

or add

"execut/yii2-loading-overlay": "dev-master"

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

Usage

For usage javascript widget inside you javascript code simple register `\execut\loadingOverlay\LoadingOverlayAsset` on you page.

Example

Copy this code to app view file: `html Toggle overlay

<?php $this->registerJs(<<<JS jQuery(function ($) { var target = $('#target'); $('.toggle-loading').click(function () {
if (target.hasClass('loading')) {
  target.loadingOverlay('remove');
} else {
  target.loadingOverlay();
};

}); }); JS ); \execut\loadingOverlay\LoadingOverlayAsset::register($this); `

License

yii2-loading-overlay is released under the Apache License Version 2.0. See the bundled LICENSE.md for details.

0 0
1 follower
2 008 downloads
Yii Version: 2.0
License: Apache-2.0
Category: User Interface
Developed by: eXeCUT
Created on: May 11, 2019
Last updated: (not set)
Packagist Profile
Github Repository

Related Extensions