Skip to content

1D Scanner

The 1D Scanner is an icon button-type component that activates the camera and scans a one-dimensional barcode to perform an action. The behavior changes as follows depending on the click event settings.
This is a component added in v3.4.0.

Click Event1D Scanner click behavior
NoneDoes nothing.
Action- The camera is activated to read the 1D code. (To cancel, click the X in the upper left corner of the camera.)
- Read the 1D code (barcode) with the camera.
- The action is performed. In the action, $ui.<component_id>.value can be used to obtain the value of the 1D code that was read.

Properties

NoItemInput ValueDefault ValueAction PropertyTypeAction Default ValueDescription
1IDStringAuto-generatedidstringAuto-generatedThe [id] property cannot be set by action.
2WidthNumber40widthnumber40Width of the component
3HeightNumber40heightnumber40Height of the component
4XNumberxnumberX coordinate position
5YNumberynumberY coordinate position
6ColorString
Color Picker
colorstringColor setting of the component
7DisabledBooleanOFFdisabledbooleanfalseDisabled state of the component
8VisibilityBooleanONvisibilitybooleantrueVisibility state of the component
9TooltipStringtooltipstringTooltip text displayed on hover
10Click EventSelection
1. None
2. Action
Click behavior
11ValuevaluestringThe [value] property cannot be set by action.

Event

Event nameDescription
onclickClicking activates the camera to scan the 1D code. Scanning with the camera triggers the event.