Class Loading
- All Implemented Interfaces:
Serializable
The loading options control the appearance of the loading screen that covers
the plot area on chart operations. This screen only appears after an explicit
call to chart.showLoading(). It is a utility for developers to
communicate to the end user that something is going on, for example while
retrieving new data via an XHR connection. The "Loading..." text itself is
not part of this configuration object, but part of the lang
object.
For demo cases, see the loading configuration object for basic Highcharts.
- Version:
- $Id: $Id
- Author:
- Vaadin
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetter for the fieldhideDuration.Getter for the fieldlabelStyle.Getter for the fieldshowDuration.getStyle()Getter for the fieldstyle.voidsetHideDuration(Number hideDuration) The duration in milliseconds of the fade out effect.voidsetLabelStyle(Style labelStyle) CSS styles for the loading labelspan.voidsetShowDuration(Number showDuration) The duration in milliseconds of the fade in effect.voidCSS styles for the loading screen that covers the plot area.
-
Constructor Details
-
Loading
public Loading()Constructor for Loading.
-
-
Method Details
-
getHideDuration
Getter for the field
hideDuration.- Returns:
- a
Numberobject. - See Also:
-
setHideDuration
The duration in milliseconds of the fade out effect.Defaults to: 100
- Parameters:
hideDuration- aNumberobject.
-
getLabelStyle
Getter for the field
labelStyle.- Returns:
- a
Styleobject. - See Also:
-
setLabelStyle
CSS styles for the loading labelspan.Defaults to: { "fontWeight": "bold", "position": "relative", "top": "45%" }
- Parameters:
labelStyle- aStyleobject.
-
getShowDuration
Getter for the field
showDuration.- Returns:
- a
Numberobject. - See Also:
-
setShowDuration
The duration in milliseconds of the fade in effect.Defaults to: 100
- Parameters:
showDuration- aNumberobject.
-
getStyle
Getter for the field
style.- Returns:
- a
Styleobject. - See Also:
-
setStyle
CSS styles for the loading screen that covers the plot area. Defaults to:style: { position: 'absolute', backgroundColor: 'white', opacity: 0.5, textAlign: 'center' }- Parameters:
style- aStyleobject.
-