Customizing the File Selector Button
If you are already using the default Image Relay File Selector in other applications, you may edit the preconfigured Image Relay file selector button.
You may call the selector javascript API yourself to launch the selector popup as follows:
var options = {
clientId: "12m3hejtzk75surtlhm4idzge2h2y90",
linkType: "embed",
domain: 'https://mycompany.imagerelay.com'
};
var irSelect = new ImageRelaySelector(options);
irSelect.success(function(response) {
console.log(response);
});
irSelect.cancel(function() {
console.log("user clicked cancel");
});
// This will launch the popup
irSelect.launchPopup();
Comments
0 comments
Article is closed for comments.