value
Gets/Sets the value of the barcode.
Example
<div id="barcode"></div>
<script>
$('#barcode').kendoBarcode({
width: 300,
value: "123456"
});
// get a reference to the barcode widget
var barcode = $("#barcode").data("kendoBarcode");
// get the value of the barcode.
var value = barcode.value();
/* The result can be observed in the DevTools(F12) console of the browser. */
console.log(value);
// sets the value of the barcode and redraws it.
barcode.value("1234567");
</script>
Parameters
value Number | String
The value to set.
Returns
String
The value of the barcode.