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.
Detailed description
Assigns transmitted preloader element.
Params:
Name | Type | Description |
---|---|---|
element | Element | DOM element. |
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 |
---|---|---|---|
enabled | boolean | false | Whether the preloader should be visible. |
Returns:
anychart.ui.Preloader - Self instance for method chaining.Try it: