S2 icon indicating copy to clipboard operation
S2 copied to clipboard

🙏在交叉表里面需要支持单击右键弹出自定义弹框

Open mlf75 opened this issue 5 years ago • 2 comments

🖋 Description

image

如上图,需要在用户手动框选单元格后右键单击触发自定义弹框出现

希望能支持 onContextMenu 这个事件

🏞 What problem does this feature solve

🧐 Suggest the API

name type default description
- - - -

mlf75 avatar Nov 24 '21 09:11 mlf75

@mlf75 你好, 表格是支持 onContextMenu

请参考这篇文章: https://s2.antv.vision/zh/docs/manual/advanced/interaction/basic#%E5%85%A8%E5%B1%80

image image

lijinke666 avatar Dec 03 '21 10:12 lijinke666

如果是使用的 react 版本, 监听 onContextMenu

<SheetComponent onContextMenu={...}/>

lijinke666 avatar Dec 03 '21 10:12 lijinke666