/** * Log message to server * @param {any} s Value to display */ const log = (s) => Logger.log(s); /** * Create pop-up message to notify user. Log if in debugging mode and can't alert. * * @param {string} s Text to display */ const alert = (s) => { try {SpreadsheetApp.getUi().alert(s);} catch {log(s);} }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter