自定义命令的handler函数触发时,如何获取所选择的单元格或者行信息 #3646
-
在handler中,如何获取右键选择的行信息或者单元格信息 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The parameters of the command are determined by the trigger, but you can still get any service in the DI system through inject Read the following documents to understand the selection content univer.ai/guides/sheet/features/core/range-selection#get-active-selection univer.ai/typedoc/@univerjs/facade/classes/FSelection#getactiverange |
Beta Was this translation helpful? Give feedback.
The parameters of the command are determined by the trigger, but you can still get any service in the DI system through inject
Read the following documents to understand the selection content
univer.ai/guides/sheet/features/core/range-selection#get-active-selection
univer.ai/typedoc/@univerjs/facade/classes/FSelection#getactiverange