New to KendoReactStart a free 30-day trial

Barcode

A subclass of React.Component.

Represents the KendoReact Barcode component.

NameTypeDefaultDescription

element

"null" | HTMLDivElement

The DOM element of the Barcode.

props

Readonly<BarcodeProps>

The props of the Barcode component.

surface

"null" | Surface

The Drawing Surface of the Barcode.

Methods

exportImage

Exports the component as an image. The export operation is asynchronous and returns a promise.

Parameters

options

ImageExportOptions

The parameters for the exported image.

Returns

Promise<string>

  • A promise that will be resolved with a PNG image encoded as a Data URI.

exportSVG

Exports the component as an SVG document. The export operation is asynchronous and returns a promise.

Parameters

options

SVGExportOptions

The parameters for the exported file.

Returns

Promise<string>

  • A promise that will be resolved with an SVG document that is encoded as a Data URI.

exportVisual

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.
In this article
Methods
Not finding the help you need?
Contact Support