g6/packages/site/examples/tool/toolbar/index.en.md

434 B

title order
ToolBar 4

ToolBar is a build-in Component in G6, but not reigstered by default. It needs to be imported into the code and registered with the extend method, and then you could configured it to the graph instance.

Usage

The demo below show how to use toolbar on graph. Toolbar's style can be defined by the CSS with class name g6-component-toolbar:

.g6-component-toolbar {
  // css styles
}