This is an automated email from the ASF dual-hosted git repository.
wangzx pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts-doc.git
The following commit(s) were added to refs/heads/next by this push:
new f8843c9 feat(tooltip): add the `className` option.
f8843c9 is described below
commit f8843c9c12fa183182a46c49dcc4b1005288d540
Author: plainheart <[email protected]>
AuthorDate: Thu Dec 31 12:10:45 2020 +0800
feat(tooltip): add the `className` option.
---
en/option/component/tooltip.md | 15 +++++++++++++++
zh/option/component/tooltip.md | 15 +++++++++++++++
2 files changed, 30 insertions(+)
diff --git a/en/option/component/tooltip.md b/en/option/component/tooltip.md
index 4e04c64..332f9c2 100644
--- a/en/option/component/tooltip.md
+++ b/en/option/component/tooltip.md
@@ -207,6 +207,21 @@ Here we provide `appendToBody: true` to auto append the
tooltip element to `<bod
Note that it also works when CSS transform used.
+## className(string)
+
+<ExampleUIControlText />
+
+{{ use: partial-version(
+ version = "5.0.0"
+) }}
+
+Specify the classes for the tooltip root DOM. (Only works in
[`html`](~tooltip.renderMode) render mode).
+
+Example:
+```js
+className: 'echarts-tooltip echarts-tooltip-dark'
+```
+
## transitionDuration(number) = 0.4
<ExampleUIControlNumber min="0" step="0.1" default="0.4" />
diff --git a/zh/option/component/tooltip.md b/zh/option/component/tooltip.md
index 93d2289..4fcddf0 100644
--- a/zh/option/component/tooltip.md
+++ b/zh/option/component/tooltip.md
@@ -207,6 +207,21 @@ const option = {
注:CSS transform 的场景,这也可以使用。
+## className(string)
+
+<ExampleUIControlText />
+
+{{ use: partial-version(
+ version = "5.0.0"
+) }}
+
+指定 tooltip 的 DOM 节点的 CSS 类。(只在 [`html`](~tooltip.renderMode) 模式下生效)。
+
+Example:
+```js
+className: 'echarts-tooltip echarts-tooltip-dark'
+```
+
## transitionDuration(number) = 0.4
<ExampleUIControlNumber min="0" step="0.1" default="0.4" />
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]