PHP code example of tiagocardosos / yii2-widget-isloading

1. Go to this page and download the library: Download tiagocardosos/yii2-widget-isloading library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tiagocardosos / yii2-widget-isloading example snippets



use tiagocardosos\isloading\IsLoading;



<?=IsLoading::widget();



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
]);


php composer.phar