定制 tiagocardosos/yii2-widget-isloading 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

tiagocardosos/yii2-widget-isloading

最新稳定版本:1.0

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.01k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

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