AnyChart
API Reference
Still have questions?
Contact support
Top

class anychart.ui.Preloader Improve this Doc

The Preloader class contains methods for configuring 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:

NameTypeDescription
elementElementDOM element.

render

Renders the preloader.

Params:

NameTypeDescription
parentElementElementElement to render the preloader into.

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:

NameTypeDefaultDescription
enabledboolean
false
Whether the preloader should be visible.

Returns:

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