Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs(typo): dblclick, not dbclick #2380

Merged
merged 1 commit into from
Mar 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/api/options/events.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ In `Basic Events`, as long as these events are triggered in the canvas, they wil

- When the column of the column plot is clicked
- When a certain item of the legend is hovered
- When the axis label is dbclicked
- When the axis label is dblclicked
- and so on...

In this case, we can use the composite event of G2. The composite event rule of G2 is: `component name: basic event name`, namely:
Expand All @@ -51,7 +51,7 @@ For example, corresponding to the above scenarios, the event name is:

- element:click
- legend-item:mouseover
- axis-label:dbclick
- axis-label:dblclick
- and so on...

> Among the built-in components of G2Plot(G2), the classification of componentName is very detailed, which can be roughly explained with the following figure.
Expand Down
4 changes: 2 additions & 2 deletions docs/api/options/events.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ order: 6

- 柱形图的柱子被 click 的时候
- 图例的某一项被 hover 的时候
- 坐标轴的标签被 dbclick 的时候
- 坐标轴的标签被 dblclick 的时候
- ...

这种情况我们就可以使用 G2 的组合事件,G2 的组合事件规则为:`组件名:基础事件名`,即:
Expand All @@ -51,7 +51,7 @@ ${componentName}:${eventName}

- element:click
- legend-item:mouseover
- axis-label:dbclick
- axis-label:dblclick
- ...

> G2Plot(G2) 内置的组件中,componentName 的分类很细,可以以下面的一个图进行大概说明。
Expand Down