3 posts tagged with “menu”

With Menu Cooldown

A menu item that archives rows or sends emails is dangerous when someone double-clicks it. withMenuCooldown(key, seconds, fn, opts) runs fn…

Get the Active Row as an Object

Menu actions and sidebar handoffs usually care about the row you're on, not the whole grid. getActiveRowAsObject reads the header row plus…

Confirm a Dangerous Action (Yes/No)

Custom menus that Clear, Re-import, or Archive should not fire on a misclick. This thin wrapper around SpreadsheetApp.getUi().alert returns…