createQRCodeValidator
Function
Definition
Package:@progress/kendo-angular-barcodes
Syntax:
ts
const control = new FormControl('Фоо', createQRCodeValidator());
console.log(control.errors);
// {
// qrcode: {
// message: 'Unsupported character in QR Code: "Ф".',
// value: '1234',
// type: 'EAN13'
// }
// }
Creates a value validator for a specific QR Code encoding.
Parameters:encodingQRCodeEncoding
Sets the QR Code encoding. Defaults to ISO_8859_1.
ValidatorFn
Returns a validator function. The function returns an error map with the qrcode property if the value is invalid. Otherwise, it returns null.