Skip to content

Instantly share code, notes, and snippets.

View amadeomano's full-sized avatar
:fishsticks:
Building the blocks

Amadeo Manouchehri amadeomano

:fishsticks:
Building the blocks
View GitHub Profile
@amadeomano
amadeomano / Multiselect.gs
Last active April 6, 2023 20:58
Add Multi Selection to Google Sheets
const SOURCE = 'Components!A2:A';
function onOpen(e) {
SpreadsheetApp.getUi()
.createMenu('Scripts')
.addItem('Multi-select for this cell...', 'showDialog')
.addToUi();
}
function showDialog() {
var html = HtmlService.createHtmlOutputFromFile('dialog').setSandboxMode(HtmlService.SandboxMode.IFRAME);