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. ts
|
border? |
|
The border of the Barcode. ts
| |
checksum? |
|
|
If set to ts
|
color? |
|
|
The color of the Barcode. Accepts a valid CSS color string, including hex and rgb. ts
|
height? |
|
The height of the Barcode in pixels. The Barcode dimensions can also be set through regular CSS styling. ts
| |
padding? |
|
|
The padding of the Barcode. A numeric value sets all paddings. ts
|
renderAs? |
|
|
Sets the preferred rendering mode of the Barcode. The supported values are:
ts
|
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 ts
| |
text? |
|
The Barcode text label configuration. ts
| |
type |
|
|
The symbology (encoding) the Barcode will use. ts
|
value |
|
The value of the Barcode. ts
| |
width? |
|
The width of the Barcode in pixels. The Barcode dimensions can also be set through regular CSS styling. ts
|
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 |