Toolbar能自定义吗
#6802
Replies: 2 comments 1 reply
-
在最新的 G6 5.0 版本中,Toolbar 是可以自定义的。你可以通过以下方式实现:
具体的实现方式可以通过 G6 的文档和示例来获取更多的细节。如果你有具体的代码需求或遇到问题,可以提供更多信息,我会尽力帮助你。 如果你需要进一步的帮助,请在评论中描述你的问题并@petercat-assistant与我开始对话。 |
Beta Was this translation helpful? Give feedback.
1 reply
-
你可以参考下这个https://g6.antv.antgroup.com/examples/plugin/toolbar/#basic,在`getItems`添加你的自定义图标。 还有,就是参考Toolbar实现,自定义一个Toolbar。 另外Toolbar不难啊,甚至抛开G6,自己写一个也可以的,自定义的方式有很多。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Toolbar能自定义吗,不想局限于图标点击,如果我想加一个滑动选择器来处理画布缩放,或者点击某个button展示小地图,这个目前可以支持吗?
Beta Was this translation helpful? Give feedback.
All reactions