core/loadingicon

Contain the logic for the loading icon.

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Methods

(inner) addIconToContainer(container) → {Promise}

Source:

Add a loading icon to the end of the specified container and return an unresolved promise.

Resolution of the returned promise causes the icon to be faded out and removed.

Parameters:
Name Type Description
container jQuery | HTMLElement

The element to add the spinner to

Returns:

The Promise used to create the icon.

Type
Promise

(inner) addIconToContainerWithPromise(container, loadingIconPromise) → {jQuery}

Source:

Add a loading icon to the end of the specified container and return an unresolved promise.

Resolution of the returned promise causes the icon to be faded out and removed.

Parameters:
Name Type Description
container jQuery | HTMLElement

The element to add the spinner to

loadingIconPromise Promise

The jQuery Promise which determines the removal of the icon

Returns:

The Promise used to create and then remove the icon.

Type
jQuery

(inner) addIconToContainerWithPromise(container) → {Promise}

Source:

Add a loading icon to the end of the specified container and return an unresolved promise.

Resolution of the returned promise causes the icon to be faded out and removed.

Parameters:
Name Type Description
container jQuery | HTMLElement

The element to add the spinner to

Returns:

A jQuery Promise to resolve when ready

Type
Promise