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
6LockBooleanOFFlockbooleanfalseWhen ON, the component stays fixed even when the screen is scrolled.
When OFF, the component moves along with the screen scroll.
Added in v4.1.0.
7ColorString
Color Picker
colorstringColor setting of the component
8DisabledBooleanOFFdisabledbooleanfalseDisabled state of the component
9VisibilityBooleanONvisibilitybooleantrueVisibility state of the component
10TooltipStringtooltipstringTooltip text displayed on hover
11Click EventSelection
1. None
2. Action
Click behavior
12ValuevaluestringThe [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.