Skip to content

自定义命令的handler函数触发时,如何获取所选择的单元格或者行信息 #3646

Closed Answered by hexf00
13701138894 asked this question in Q&A | 常见问题
Discussion options

You must be logged in to vote

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

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hexf00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants