BarcodeComponent
Represents the Kendo UI Barcode component for Angular.
Use this component to display a barcode in your Angular application.
import { Component } from '@angular/core';
@Component({
selector: 'my-app',
template: `
<kendo-barcode type="EAN8" value="1234567">
</kendo-barcode>
`
})
export class AppComponent {
}
Selector
kendo-barcode
Export Name
Accessible in templates as #kendoBarcodeInstance="kendoBarcode"
Inputs
Name | Type | Default | Description |
---|---|---|---|
background? |
|
|
Sets the background color of the Barcode. Accepts any valid CSS color string, such as hex or rgb. |
border? |
|
Configures the border of the Barcode. | |
checksum? |
|
|
Shows the checksum digit next to the value in the text area when set to |
color? |
|
|
Sets the color of the Barcode. Accepts any valid CSS color string, such as hex or rgb. |
height? |
|
Sets the height of the Barcode in pixels. You can also set the Barcode dimensions using CSS. | |
padding? |
|
|
Sets the padding of the Barcode. Use a number to set all paddings, or a |
renderAs? |
|
|
Sets the rendering mode of the Barcode. Use |
resizeRateLimit |
|
|
Limits how often the Barcode resizes automatically. Sets the maximum number of redraws per second when the container size changes.
Set to |
text? |
|
Configures the Barcode text label. | |
type |
|
|
Sets the symbology (encoding) for the Barcode. |
value |
|
Sets the value of the Barcode. | |
width? |
|
Sets the width of the Barcode in pixels. You can also set the Barcode dimensions using CSS. |
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 |