1.1.0 • Published 3 years ago

universal-loading v1.1.0

Weekly downloads
28
License
BSD-3-Clause
Repository
-
Last release
3 years ago

showLoading

npm npm

Displays the loading prompt box.

Install

$ npm install universal-showLoading --save

or

$ npm install universal-api --save

Usage

import showLoading from 'universal-showLoading';

showLoading({
  content: 'loading...'
});

Methods

showLoading(options)

Supported

Arguments

PropertyTypeDescriptionrequiredDefault
optionsobject ✔️-
options.contentstringPrompt content✔️-
options.successFunction The callback function for a successful API call-
options.failFunction The callback function for a failed API call-
options.completeFunction The callback function used when the API call completed (always executed whether the call succeeds or fails)-

hideLoading

npm npm

Hides the loading prompt box.

Install

$ npm install universal-hideLoading --save

or

$ npm install universal-api --save

Usage

import hideLoading from 'universal-hideLoading';

hideLoading();

Methods

hideLoading(options)

Supported

Arguments

PropertyTypeDescriptionrequiredDefault
optionsobject ✔️-
options.successFunction The callback function for a successful API call-
options.failFunction The callback function for a failed API call-
options.completeFunction The callback function used when the API call completed (always executed whether the call succeeds or fails)-