Scanner

A scanner to capture barcodes using a connected camera or webcam. It supports skipping duplicates and confirmations for continuous scanning.

Properties

Available properties for Scanner. You can write JavaScript almost anywhere in Retool to manipulate or read information about components.

NameDescriptionautoClose

Whether the scanner automatically closes after a successful scan.

data

A list of values scanned by the barcode.

ignoreDuplicates

Whether to ignore duplicate values when capturing multiple barcodes.

launchButtonLabel

The text to display in the button to begin scanning.

ephemeralConfirm

Whether to continue scanning without confirmation.

Events

Events are triggered by user interactions with Scanner. Use event handling to trigger queries or other actions in response to events.

NameDescriptionScan

A user scans a barcode.

Open

A user opens the component.

Close

A user closes the component.

Methods

Methods for interacting with Scanner. You can write JavaScript almost anywhere in Retool and use methods to manipulate data or components.

NameDescriptionscrollIntoView(options: any)

Scrolls the canvas or parent container so that the selected component appears in the visible area.

clearValue()

Clear the current value of data.