Class ContextButtonMenuItem
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.ContextButtonMenuItem
- All Implemented Interfaces:
Serializable
- Since:
- 6.0.1
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetText()voidsetOnclick(String _fn_onclick) Sets the JavaScript function of theonclickoption, as the source code of the function.void
-
Constructor Details
-
ContextButtonMenuItem
public ContextButtonMenuItem()
-
-
Method Details
-
getText
-
setText
-
getOnclick
-
setOnclick
Sets the JavaScript function of theonclickoption, as the source code of the function.The browser compiles the function from this string, which a Content Security Policy without
unsafe-evalblocks: in the strict CSP mode, sending a chart configuration that has a function throws aCspViolationException.- Parameters:
_fn_onclick- the source code of the JavaScript function
-