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

17 lines
434 B
Markdown
Raw Normal View History

2023-02-02 10:31:36 +08:00
---
title: ToolBar
order: 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.
2023-02-02 10:31:36 +08:00
## 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`:
```css
.g6-component-toolbar {
// css styles
}
2023-02-02 10:31:36 +08:00
```