AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 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:

NameTypeDescription
elementElementElement to decorate.

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
valueboolean
false
Whether the preloader should be visible.

Returns:

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