Top
You are looking at an outdated 7.9.0 version of this document. Switch to the 8.0.1 version to see the up to date information.

class anychart.core.ui.toolbar.Toolbar Improve this Doc

Toolbar element.
Toolbar is a part of gantt chart. Toolbar contains menu Print with options print A4 - A0, buttons ZoomIn, ZoomOut, FitAll, ExpandAll/CollapseAll and menu with option Save As (SVG, PNG, JPG, PDF).

Methods Overview

Specific settings
printPaperSizes()Print paper sizes.
target()Target for controled chart.
Miscellaneous
container()Toolbar container.
draw()Draws toolbar.

Methods Description

container

Getter for toolbar container.

Returns:

Element undefined - Current container.

Try it:

Setter toolbar container.

Params:

Name Type Default Description
element string | Element
undefined
Element ID or a DOM node.

Returns:

anychart.core.ui.toolbar.Toolbar - Self instance for method chaining.

Try it:

draw

Draws toolbar.

Returns:

anychart.core.ui.toolbar.Toolbar - Self instance for method chaining.

Try it:

printPaperSizes

Getter for the current print paper sizes.

Returns:

Array.<anychart.graphics.vector.PaperSize> - The current print paper sizes.

Try it:

Setter for the print paper sizes.

Params:

Name Type Default Description
value Array.<anychart.graphics.vector.PaperSize>
["usletter", "a0", "a0", "a1", "a2", "a3", "a4", "a5", "a6"]
Array of supported print paper sizes.

Returns:

anychart.core.ui.toolbar.Toolbar - Self instance for method chaining.

Try it:

target

Getter for controlled chart.

Returns:

anychart.core.Chart undefined - Current target.

Try it:

Setter for controlled chart.

Params:

Name Type Default Description
value anychart.core.Chart
undefined
Target chart.

Returns:

anychart.core.ui.toolbar.Toolbar - Self instance for method chaining.

Try it: