paddingObject
The padding of the barcode.
Example - set the padding of the barcode
<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
value:"123456",
width: 300,
padding: {
top: 20,
left: 5,
right: 5,
bottom: 5
}
});
</script>
padding.bottomNumber
(default: 0)
The bottom padding of the barcode.
Example
<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
width: 300,
value: "123456",
padding: {
bottom: 20
}
});
</script>
padding.leftNumber
(default: 0)
The left padding of the barcode.
Example
<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
width: 300,
value: "123456",
padding: {
left: 15
}
});
</script>
padding.rightNumber
(default: 0)
The right padding of the barcode.
Example
<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
width: 300,
value: "123456",
padding: {
right: 25
}
});
</script>
padding.topNumber
(default: 0)
The top padding of the barcode.
Example
<div id="barcode"></div>
<script>
$("#barcode").kendoBarcode({
width: 300,
value: "123456",
padding: {
top: 30
}
});
</script>
In this article