I'd like to use Google Picker in my Scala.js app. I need to convert this example somehow.
There are two main questions:
The first, how can I load and use https://apis.google.com/js/api.js in my Scala.js code to use gapi
object?
gapi.load('auth', {'callback': onAuthApiLoad});
gapi.load('picker', {'callback': onPickerApiLoad});
The second, after a picker will be loaded, how can I access to the google.picker
object to create the picker?
var picker = new google.picker.PickerBuilder()