What am I doing wrong when using onSelectionChange

后端 未结 2 1603
不知归路
不知归路 2021-01-12 09:48

I found this trigger onSelectionChange(e) on developers.google.com it should set background to red if a single empty cell is selected. I\'m not getting that result with just

相关标签:
2条回答
  • 2021-01-12 09:58

    UPDATE:

    It seems it is fully rolled out to all users. You should be able to get it working without any modification to the code. The e, event object is similar to the onEdit event object.


    onSelectionChange is a recently rolled out feature. Consider waiting a few days for the feature to be rolled out to your specific project and spreadsheet.

    0 讨论(0)
  • 2021-01-12 10:07

    Use the legacy runtime, not the V8 runtime. With V8 runtime in my case sometimes it is triggered, sometimes not. There are general problems with trigger executions in V8, see https://issuetracker.google.com/issues/147016387

    0 讨论(0)
提交回复
热议问题