Skip to content

davehax/UXLoading

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UXLoading

Blockout elements with a loading message

Adds "UXLoading" to the window namespace.

Plain JS, no dependencies.

IE10+, Modern browser compatible.

Screenshot

Usage

UXLoading.show(selector [ , title = 'Loading', message = '' ]);

Will blockout an element and show what you specify

UXLoading.show('.ajax-component', 'Fetching data', 'Give us a sec, mate');
  • selector - Mandatory. Must be a valid CSS selector
  • title - Optional
  • message - Optional

UXLoading.hide(selector);

UXLoading.hide('.ajax-component');
  • selector - Mandatory. Must be a valid CSS selector

UXLoading.hideAll();

Hides all current messages

UXLoading.hideAll();

About

Blockout elements with a loading message

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published