We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.component.charts.model.
Class HTMLLabelItem
- java.lang.Object
-
- com.vaadin.flow.component.charts.model.AbstractConfigurationObject
-
- com.vaadin.flow.component.charts.model.HTMLLabelItem
-
All Implemented Interfaces:
public class HTMLLabelItem extends AbstractConfigurationObject
A HTML label that can be positioned anywhere in the chart area.
See Also:
-
-
Constructor Summary
Constructors Constructor Description HTMLLabelItem(String html)
Constructs a HTMLLabelItem with the given HTML content
HTMLLabelItem(String html, Style style)
Constructs a HTMLLabelItem with the given HTML content and style
-
-
-
Method Detail
-
getHtml
public String getHtml()
See Also:
-
setHtml
public void setHtml(String html)
Sets the inner HTML or text for the label. Defaults to "".
Parameters:
html
-
-
getStyle
public Style getStyle()
See Also:
-
setStyle
public void setStyle(Style style)
Sets the CSS style for the label. To position the label, use
Style.setLeft(String)
andStyle.setTop(String)
.Parameters:
style
-
-
-