You can change the default "Icon" used in the order substeps by setting "icon" parameter on each step.
The "Icon" configuration are being set in the "substeps" attribute of the configuration object.
Specific configuration parameters
Parameter | Description |
---|---|
substeps.confirmed.icon | String with an URL which will be used as display icon in the Confirmed order substep |
substeps.picking.icon | String with an URL which will be used as display icon in the Picking order substep |
substeps.goingToDestination.icon | String with an URL which will be used as display icon in the Going To Destination order substep |
substeps.readyForPickup.icon | String with an URL which will be used as display icon in the Ready For Pickup order substep |
substeps.delivered.icon | String with an URL which will be used as display icon in the Delivered order substep |
substeps.pickedUp.icon | String with an URL which will be used as display icon in the PickedUp order substep |
Usage Example
Consider the following example:
<!DOCTYPE html>
<head>
<title>LSW v3 Embed</title>
</head>
<body>
<div id="instaleap-lsw-v3"></div>
</body>
<script src="https://xandar-lsw-v3.instaleap.io/lib/lsw.js"></script>
<script>
const params = {
job: "myJob",
token: "myToken",
container: "#instaleap-lsw-v3",
substeps: {
received: {
icon: 'https://instaleap.atlassian.net/rest/servicedesk/1/customer/viewport-resources/portal-logo/16/6',
},
picking: {
icon: 'https://instaleap.atlassian.net/rest/servicedesk/1/customer/viewport-resources/portal-logo/16/6'
},
goingToDestination: {
icon: 'https://instaleap.atlassian.net/rest/servicedesk/1/customer/viewport-resources/portal-logo/16/6'
},
delivered: {
icon: 'https://instaleap.atlassian.net/rest/servicedesk/1/customer/viewport-resources/portal-logo/16/6'
},
readyForPickup: {
icon: 'https://instaleap.atlassian.net/rest/servicedesk/1/customer/viewport-resources/portal-logo/16/6'
},
pickedUp: {
icon: 'https://instaleap.atlassian.net/rest/servicedesk/1/customer/viewport-resources/portal-logo/16/6'
},
},
}
window.instaleap.lsw.render(params)
</script>
</html>
You will see the following content:
Example when the state of the order is Picked Up