Skip to content

Commit

Permalink
docs: add comment for separate hover highlight config in docs and demos
Browse files Browse the repository at this point in the history
  • Loading branch information
d2FuZ3h1ZG9uZw committed Jun 2, 2023
1 parent 869095e commit 7f3a44a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions s2-site/docs/manual/advanced/interaction/basic.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,13 @@ const s2Options = {
const s2Options = {
interaction: {
hoverHighlight: false // 默认 true
// 等同于
// hoverHighlight: {
// rowHeader = false, // 高亮悬停格子所在行头
// colHeader = false, // 高亮悬停格子所在列头
// currentRow = false, // 高亮悬停格子所在行
// currentCol = false, // 高亮悬停格子所在列
// },
}
};
```
Expand Down
7 changes: 7 additions & 0 deletions s2-site/examples/interaction/basic/demo/hover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ fetch(
interaction: {
// 悬停高亮
hoverHighlight: true,
// 等同于
// hoverHighlight: {
// rowHeader = true, // 高亮悬停格子所在行头
// colHeader = true, // 高亮悬停格子所在列头
// currentRow = true, // 高亮悬停格子所在行
// currentCol = true, // 高亮悬停格子所在列
// },
},
tooltip: {
showTooltip: true,
Expand Down

0 comments on commit 7f3a44a

Please sign in to comment.