Created
July 10, 2018 04:40
-
-
Save eojji/642485305234aceedfa114a884988e72 to your computer and use it in GitHub Desktop.
Main page, Custom Properties - App Maker, https://cafe.naver.com/eojji/332
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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