Custom chat

The object chat allows you to customize the following:
Title of the support tab in the chat of the client.
Title of the picking tab in the chat of the client.
Title of the driver tab in the chat of the client.

ParameterDescription
chat.supportTab.titleAllows you to customize the title of the support tab in the customer chat.
chat.pickingTab.titleAllows you to customize the title of the picking tab in the customer chat.
chat.driverTab.titleAllows you to customize the title of the driver tab in the customer chat.

Usage example

Tab Support

Code 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",
        chat:{
        supportTab: {
        title: "title custom support"
        }
      }
    }
    window.instaleap.lsw.render(params)
</script>
</html>

Tab Picking

<!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",
        chat:{
        pickingTab: {
        title: "title custom picking"
        }
      }
    }
    window.instaleap.lsw.render(params)
</script>
</html>

You will see the following content

Tab Driver

Code 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",
        chat:{
        driverTab: {
        title: "title custom driver"
        }
      }
    }
    window.instaleap.lsw.render(params)
</script>
</html>

You will see the following content