New to KendoReactStart a free 30-day trial

Barcode

Component

Represents the KendoReact Barcode component.

A Functional Component.

Definition

Package:@progress/kendo-react-barcodes

Properties

props

BarcodeProps intersected with RefAttributes​<any>

The props of the Barcode component.

Accessors

element

null | HTMLDivElement

Gets the DOM element of the Barcode.

surface

null | Surface

Gets the Drawing Surface of the Barcode.

Methods

Exports the component as an image. The export operation runs asynchronously and returns a promise.

Parameters:optionsImageExportOptions

The parameters for the exported image.

Returns:

Promise​<string>

  • A promise that resolves with a PNG image encoded as a Data URI.

Exports the component as an SVG document. The export operation runs asynchronously and returns a promise.

Parameters:optionsSVGExportOptions

The parameters for the exported file.

Returns:

Promise​<string>

A promise that resolves with an SVG document that is encoded as a Data URI.

Exports a Barcode component as a Drawing Scene.

Parameters:options?any

The parameters for the export operation.

Returns:

Group

A promise that returns the root Group of the scene.