tiagocardosos/yii2-widget-isloading

Simple widget ajaxStatus. Show visual feedback when loading data or any action that would take time.

Installs: 4 689

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0 2015-08-31 05:38 UTC

This package is not auto-updated.

Last update: 2025-07-23 12:28:34 UTC


README

Simple widget show visual feedback when loading data or any action that would take time. http://hekigan.github.io/is-loading/

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist tiagocardosos/yii2-widget-isloading "*"

or add

"tiagocardosos/yii2-widget-isloading": "*"

to the require section of your composer.json file.

Usage

Add the rules as the following example

add view "main.php" file.

use tiagocardosos\isloading\IsLoading;

Simple

<?=IsLoading::widget();?>

Set Options

<?php

echo IsLoading::widget([
    'text' => 'O sistema está processando...',
    'position => 'overlay', // right | inside | overlay
    'class' => 'fa fa-refresh',
    'tpl' => '<span class=\"isloading-wrapper %wrapper%\">%text% <i class=\"%class% fa-spin\"></i></span>',
    'disableSource' => true,
    'disableOthers' => ['$( "#load-in-div .btn" )'], //more access http://hekigan.github.io/is-loading/
	'timeout'=>true,
	'time'=>1000
]);

?>