I’m trying to set the value of a cell named “restaurants” in a call back from Tabletop, but when I reference restaurants in another cell, I receive “RuntimeError: restaurants is not defined”.
Tabletop = require("https://cdnjs.cloudflare.com/ajax/libs/tabletop.js/1.5.1/tabletop.min.js")
var publicSpreadsheetUrl = "https://docs.google.com/spreadsheets/d/1eh3Lhf1DzED8q62B5XXB0GZAwT3uzcxHJw2QD0ev9P4/edit?usp=sharing";
Tabletop.init( { key: publicSpreadsheetUrl,
callback: showInfo,
simpleSheet: true } )
function showInfo(data, tabletop) {
console.log(data);
let restaurants = data;
}
}
Thank you for the help.l