Top
You are looking at an outdated 7.12.0 version of this document. Switch to the 7.13.0 version to see the up to date information.

class anychart.ui.Preloader Improve this Doc

Preloader.

Methods Overview

Specific settings
decorate()Decorates the element for the preloader.
render()Renders the preloader.
visible()Getter for the visibility of the preloader.

Methods Description

decorate

Decorates the element for the preloader.

Params:

Name Type Description
element Element Element to decorate.

Try it:

render

Renders the preloader.

Params:

Name Type Description
parentElement Element Element to render the preloader into.

Try it:

visible

Getter for the visibility of the preloader.

Returns:

boolean - Returns true if the preloader is visible.
See listing
var visibleState = preloader.visible();
Setter for the visibility of the preloader.

Params:

Name Type Default Description
value boolean
false
Whether the preloader should be visible.

Returns:

anychart.ui.Preloader - Self instance for method chaining.

Try it: