Skip to content
avoidwork edited this page Apr 24, 2012 · 1 revision

loading

Loading or spinner icon class, providing an easy way to create spinners on the screen.

$.loading.url = "/assets/spinner.gif";
$("#id").loading();

loading.create

Method

Renders a loading icon in a target element, with a class of "loading"

@param  {Mixed} obj Entity or Array of Entities or $ queries
@return {Mixed} Entity, Array of Entities or undefined

Prototype

Array.prototype.loading				Element.prototype.loading

Example

$("#target").loading().get("uri");

loading.image

Property

Image instance of the url

loading.url

Property

URL of image to display