Change the Plugin Tile Appearance
Use the iconData parameter to change the appearance of the plugin button on the Landing page. You can change the status text, icon image, and color of the plugin button. The status you can show includes number of processed activities, status of the order, number of pending actions, and so on. When the data is synchronized successfully, you can even change the icon to indicate it.
{
var closeData = {
"apiVersion": 1,
"method": "close",
"iconData": {
"color": "highlight",
"text": "117",
"image": new Blob([
'<?xml version="1.0"?>' +
'<svg xmlns="http://www.w3.org/2000/svg" version="1.2" baseProfile="tiny" viewBox="0 0 64 64">' +
'<rect x="16" y="16" width="32" height="32" fill="#fff" />' +
'</svg>'
], { type: 'image/svg+xml' });
}
}
window.parent.postMessage(closeData, origin);
}