loading Simple widget for displaying "loading" icon/splashscreen

  1. Requirements
  2. Usage

You can add this widget to actions & widgets, that do some ajax requests or other continuous javascript operations and use Loading.show() and Loading.hide() for displaying pretty animated loading icon/splashscreen

Don't worry about multiple calls of this widget, it don't write any html excepting registering .js and .css files and in any case it happens once per page.

To customize it's view you can copy assets dir to your_theme_dir/LoginWidget/assets and make it looks differ.

The only sense of moving such simple script to reusable widget is a good code organizing practice and common interface.

Requirements

Yii framework 1.1+

JQuery

Usage

In views/layouts:

$this->widget('ext.widgets.loading.LoadingWidget');

In javascript: ~~~ [javascript] Loading.show(); Loading.hide(); ~~~

7 1
28 followers
2 424 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: User Interface
Developed by: Nayjest
Created on: Sep 16, 2011
Last updated: 13 years ago

Downloads

show all

Related Extensions