Specific configuration parameters

📘

Hide elements value

  • Beware that for now, values are somehow inverted.
  • in order to display the element you set true, in order to hide, you set the value false.
Parameter libParameter webDescription
hideElements.decimalsdecimalsAllows you to show or hide the decimals in OrderDetails component.
default: "false"
options: "false: || "true"
decimalsLengthdecimalsLengthAllows to define the number of decimals to show
default: "2"

Usage Example

Consider the following examples:

Hiding Decimals Component Order Details

<!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/status.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",       
        hideElements: {             
            decimals: true
        },
    }
    window.instaleap.status.render(params)
</script>
</html>
https://xandar-lsw-v3.instaleap.io/status?job=myJob&token=myToken&hideDecimals=true

Setting 3 decimals to show

<!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/status.js"></script>
<script>
    const params = {
        job: "myJob",
        token: "myToken",
        container: "#instaleap-lsw-v3",       
        decimalsLength: "3",
    }
    window.instaleap.status.render(params)
</script>
</html>
https://xandar-lsw-v3.instaleap.io/status?job=myJob&token=myToken&decimalsLength=3