Class ContextButton
java.lang.Object
com.vaadin.flow.component.charts.model.AbstractConfigurationObject
com.vaadin.flow.component.charts.model.ContextButton
- All Implemented Interfaces:
Serializable
Options for the export button.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()Gets the spacing between the context button and other exporting buttons.getText()getTheme()getWidth()getX()getY()voidsetAlign(HorizontalAlign align) Alignment for the buttons.voidsetButtonSpacing(Number buttonSpacing) Sets the spacing between the context button and other exporting buttons.voidsetEnabled(Boolean enabled) Whether to enable buttons.voidPixel height of the buttons.voidsetMenuItems(ContextButtonMenuItem[] menuItems) A collection of config options for the menu items.voidThe symbol for the button.voidsetSymbolFill(Color symbolFill) See navigation.buttonOptions => symbolFill.voidsetSymbolSize(Number symbolSize) The pixel size of the symbol on the button.voidsetSymbolStroke(Color symbolStroke) The color of the symbol's stroke or line.voidsetSymbolStrokeWidth(Number symbolStrokeWidth) The pixel stroke width of the symbol on the button.voidsetSymbolX(Number symbolX) The x position of the center of the symbol inside the button.voidsetSymbolY(Number symbolY) The y position of the center of the symbol inside the button.voidA text string to add to the individual button.voidsetTheme(ButtonTheme theme) A configuration object for the button theme.voidsetVerticalAlign(VerticalAlign verticalAlign) The vertical alignment of the buttons.voidThe pixel width of the button.voidThe horizontal position of the button relative to thealignoption.voidThe vertical offset of the button's position relative to itsverticalAlign. .
-
Constructor Details
-
ContextButton
public ContextButton() -
ContextButton
-
ContextButton
-
-
Method Details
-
getAlign
- See Also:
-
setAlign
Alignment for the buttons.Defaults to: right
-
getButtonSpacing
Gets the spacing between the context button and other exporting buttons.- Returns:
- the button spacing
-
setButtonSpacing
Sets the spacing between the context button and other exporting buttons.- Parameters:
buttonSpacing- the spacing value
-
getEnabled
- See Also:
-
setEnabled
Whether to enable buttons.Defaults to: true
-
getHeight
- See Also:
-
setHeight
Pixel height of the buttons.Defaults to: 20
-
getMenuItems
- See Also:
-
setMenuItems
A collection of config options for the menu items. Each options object consists of a
textoption which is a string to show in the menu item, as well as anonclickparameter which is a callback function to run on click.By default, there is the "Print" menu item plus one menu item for each of the available export types. Menu items can be customized by defining a new array of items and assigning
nullto unwanted positions (see override example below). -
getSymbol
- See Also:
-
setSymbol
The symbol for the button. Points to a definition function in theHighcharts.Renderer.symbolscollection. The defaultexportIconfunction is part of the exporting module.Defaults to: menu
-
getSymbolFill
- See Also:
-
setSymbolFill
See navigation.buttonOptions => symbolFill.Defaults to: #666666
-
getSymbolSize
- See Also:
-
setSymbolSize
The pixel size of the symbol on the button.Defaults to: 14
-
getSymbolStroke
- See Also:
-
setSymbolStroke
The color of the symbol's stroke or line.Defaults to: #666666
-
getSymbolStrokeWidth
- See Also:
-
setSymbolStrokeWidth
The pixel stroke width of the symbol on the button.Defaults to: 1
-
getSymbolX
- See Also:
-
setSymbolX
The x position of the center of the symbol inside the button.Defaults to: 12.5
-
getSymbolY
- See Also:
-
setSymbolY
The y position of the center of the symbol inside the button.Defaults to: 10.5
-
getText
- See Also:
-
setText
A text string to add to the individual button.Defaults to: null
-
getTheme
- See Also:
-
setTheme
A configuration object for the button theme. The object accepts SVG properties likestroke-width,strokeandfill. Tri-state button styles are supported by thestates.hoverandstates.selectobjects. -
getVerticalAlign
- See Also:
-
setVerticalAlign
The vertical alignment of the buttons. Can be one of "top", "middle" or "bottom".Defaults to: top
-
getWidth
- See Also:
-
setWidth
The pixel width of the button.Defaults to: 24
-
getX
- See Also:
-
setX
The horizontal position of the button relative to thealignoption.Defaults to: -10
-
getY
- See Also:
-
setY
The vertical offset of the button's position relative to itsverticalAlign. .Defaults to: 0
-