QRCodeComponent
Represents the Kendo UI QR Code component for Angular.
Shows a QR Code for the provided value.
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<kendo-qrcode value="https://www.telerik.com/kendo-angular-ui">
</kendo-qrcode>
`
})
export class AppComponent {
}
Selector
kendo-qrcode
Export Name
Accessible in templates as #kendoQRCodeInstance="kendoQRCode"
Inputs
Name | Type | Default | Description |
---|---|---|---|
background? |
|
|
Sets the background color of the QR Code. Accepts any valid CSS color string, such as hex or rgb. |
border? |
|
Sets the border of the QR Code. | |
color? |
|
|
Sets the color of the QR Code. Accepts any valid CSS color string, such as hex or rgb. |
encoding? |
|
|
Sets the encoding mode for the value.
|
errorCorrection? |
|
|
Sets the error correction level. |
overlay? |
|
Sets an optional image overlay to display over the QR Code.
| |
padding? |
|
|
Sets the padding for the QR Code in pixels. |
renderAs? |
|
|
Sets the rendering mode for the QR Code. |
resizeRateLimit |
|
|
Limits how often the QR Code resizes automatically. Sets the maximum redraws per second when the container size changes.
Set to |
size? |
|
|
Sets the size of the QR Code. Numeric values are in pixels. If no size is specified, the size will be determined from the element width and height. If the element has width or height of zero, a default value of 200 pixels will be used. |
value |
|
Sets the value to encode in the QR Code. |
Methods
exportImage | ||||||
---|---|---|---|---|---|---|
Exports the component as an image. The export operation is asynchronous and returns a promise. | ||||||
| ||||||
|
exportSVG | ||||||
---|---|---|---|---|---|---|
Exports the component as an SVG document. The export operation is asynchronous and returns a promise. | ||||||
| ||||||
|
exportVisual | ||||
---|---|---|---|---|
Exports the component as a Drawing Group. | ||||
|
resize |
---|
Detects the size of the container and redraws the component.
Resizing is automatic unless you set the |