tiagocardosos/yii2-widget-isloading 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tiagocardosos/yii2-widget-isloading

Composer 安装命令:

composer require tiagocardosos/yii2-widget-isloading

包简介

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

README 文档

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

?>

统计信息

  • 总下载量: 5.62k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-08-30