BarcodeComponent
Represents the Kendo UI Barcode component for Angular.
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? |
|
|
The background color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
|
border? |
|
The border of the Barcode.
| |
checksum? |
|
|
If set to
|
color? |
|
|
The color of the Barcode. Accepts a valid CSS color string, including hex and rgb.
|
height? |
|
The height of the Barcode in pixels. The Barcode dimensions can also be set through regular CSS styling.
| |
padding? |
|
|
The padding of the Barcode. A numeric value sets all paddings.
|
renderAs? |
|
|
Sets the preferred rendering mode of the Barcode. The supported values are:
|
resizeRateLimit |
|
Limits the automatic resizing of the Barcode. Sets the maximum number of times per second
that the component redraws its content when the size of its container changes.
Defaults to
| |
text? |
|
The Barcode text label configuration.
| |
type |
|
|
The symbology (encoding) the Barcode will use.
|
value |
|
The value of the Barcode.
| |
width? |
|
The width of the Barcode in pixels. The Barcode dimensions can also be set through regular CSS styling.
|
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 |