Class Loading
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.Loading
-
- All Implemented Interfaces:
Serializable
public class Loading extends AbstractConfigurationObject
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 tochart.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 thelang
object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Loading()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Number
getHideDuration()
Style
getLabelStyle()
Number
getShowDuration()
Style
getStyle()
void
setHideDuration(Number hideDuration)
The duration in milliseconds of the fade out effect.void
setLabelStyle(Style labelStyle)
CSS styles for the loading labelspan
.void
setShowDuration(Number showDuration)
The duration in milliseconds of the fade in effect.void
setStyle(Style style)
CSS styles for the loading screen that covers the plot area.
-
-
-
Method Detail
-
getHideDuration
public Number getHideDuration()
- See Also:
setHideDuration(Number)
-
setHideDuration
public void setHideDuration(Number hideDuration)
The duration in milliseconds of the fade out effect.Defaults to: 100
-
getLabelStyle
public Style getLabelStyle()
- See Also:
setLabelStyle(Style)
-
setLabelStyle
public void setLabelStyle(Style labelStyle)
CSS styles for the loading labelspan
.Defaults to: { "fontWeight": "bold", "position": "relative", "top": "45%" }
-
getShowDuration
public Number getShowDuration()
- See Also:
setShowDuration(Number)
-
setShowDuration
public void setShowDuration(Number showDuration)
The duration in milliseconds of the fade in effect.Defaults to: 100
-
getStyle
public Style getStyle()
- See Also:
setStyle(Style)
-
setStyle
public void setStyle(Style style)
CSS styles for the loading screen that covers the plot area.Defaults to: { "position": "absolute", "backgroundColor": "#ffffff", "opacity": 0.5, "textAlign": "center" }
-
-