com.vaadin.flow.component.charts.model.
Class ContextButton
All Implemented Interfaces:
Options for the export button.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAlign()
getText()
getTheme()
getWidth()
getX()
getY()
void
setAlign
(HorizontalAlign align) Alignment for the buttons.
void
setEnabled
(Boolean enabled) Whether to enable buttons.
void
Pixel height of the buttons.
void
setMenuItems
(ContextButtonMenuItem[] menuItems) A collection of config options for the menu items.
void
The symbol for the button.
void
setSymbolFill
(Color symbolFill) See navigation.buttonOptions => symbolFill.
void
setSymbolSize
(Number symbolSize) The pixel size of the symbol on the button.
void
setSymbolStroke
(Color symbolStroke) The color of the symbol's stroke or line.
void
setSymbolStrokeWidth
(Number symbolStrokeWidth) The pixel stroke width of the symbol on the button.
void
setSymbolX
(Number symbolX) The x position of the center of the symbol inside the button.
void
setSymbolY
(Number symbolY) The y position of the center of the symbol inside the button.
void
A text string to add to the individual button.
void
setTheme
(ButtonTheme theme) A configuration object for the button theme.
void
setVerticalAlign
(VerticalAlign verticalAlign) The vertical alignment of the buttons.
void
The pixel width of the button.
void
The horizontal position of the button relative to the
align
option.void
The vertical offset of the button's position relative to its
verticalAlign
.
-
Constructor Details
-
ContextButton
public ContextButton() -
ContextButton
-
ContextButton
-
-
Method Details
-
getAlign
See Also:
-
setAlign
Alignment for the buttons.
Defaults to: right
-
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
text
option which is a string to show in the menu item, as well as anonclick
parameter 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
null
to unwanted positions (see override example below). -
getSymbol
See Also:
-
setSymbol
The symbol for the button. Points to a definition function in the
Highcharts.Renderer.symbols
collection. The defaultexportIcon
function 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 like
stroke-width
,stroke
andfill
. Tri-state button styles are supported by thestates.hover
andstates.select
objects. -
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 the
align
option.Defaults to: -10
-
getY
See Also:
-
setY
The vertical offset of the button's position relative to its
verticalAlign
. .Defaults to: 0
-