Skip to content

Instantly share code, notes, and snippets.

@eojji
Created July 10, 2018 04:40
Show Gist options
  • Save eojji/642485305234aceedfa114a884988e72 to your computer and use it in GitHub Desktop.
Save eojji/642485305234aceedfa114a884988e72 to your computer and use it in GitHub Desktop.
Main page, Custom Properties - App Maker, https://cafe.naver.com/eojji/332
/**
* https://developers.google.com/appmaker/tutorials/call-scripts/
* @param {widget} widget - Button widget.
* @param {event}
*/
function onListFilesClick(widget, event) {
var widgets = widget.parent.descendants;
var from = widgets.TextBoxFromFolder.value;
var to = widgets.TextBoxToFolder.value;
google.script.run.withSuccessHandler(
function(resp) {
widget.root.properties.ssNameProperty = resp.name;
widget.root.properties.ssUrlProperty = resp.url;
}
)
.myListFiles(from, to);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment