# Barcode Scanner

## Description:

Barcode Scanner

Barcode Scanner is a component which uses webcam to scan the items and store the value of that in the view attribute. It can read different type of barcode types eg: Code128, Code 39, UPC etc..

### Allowed Parent Components:

1. Card Body
2. Col

### Allowed Child Components:

1. Popover
2. Pulse
3. Trigger Before Render
4. Trigger On Scan

### Properties

### ➤ View Attribute

Allowed Values: Attribute

### ➤ Barcode Type

Select the type of barcode. Data will be retrieved from the scanned barcode based on the selected type.

Allowed Values:

1. code\_128\_reader
2. code\_39\_reader
3. code\_39\_vin\_reader
4. ean\_reader
5. ean\_extended\_reader
6. ean\_8\_reader
7. upc\_reader
8. upc\_e\_reader
9. codabar\_reader
10. i2of5\_reader
11. 2of5\_reader
12. code\_93\_reader

### ➤ Start Button Label

Change label for the start button.

Allowed Values: Free text field

### ➤ Stop Button Label

Change label for the stop button.

Allowed Values: Free text field

### ➤ Margin

Select a value to add margin on all four sides of the component. It is a shorthand for margin-top, margin-right, margin-bottom, and margin-left.

Allowed Values: Any number value

### ➤ Margin Bottom

Select a value to add margin on the bottom of the component.

Allowed Values: Any number value

### ➤ Margin Left

Select a value to add margin on the left of the component.

Allowed Values: Any number value

### ➤ Margin Right

Select a value to add margin on the right of the component.

Allowed Values: Any number value

### ➤ Margin Top

Select a value to add margin on the top of the component.

Allowed Values: Any number value

### ➤ Padding

Select a value to add padding on all four sides of the component. It is a shorthand for padding-top, padding-right, padding-bottom, and padding-left.

Allowed Values: Any number value

### ➤ Padding Bottom

Select a value to add padding in the bottom of the component.

Allowed Values: Any number value

### ➤ Padding Left

Select a value to add padding in the left of the component.

Allowed Values: Any number value

### ➤ Padding Right

Select a value to add padding in right of the component.

Allowed Values: Any number value

### ➤ Padding Top

Select a value to add padding in top of the component.

Allowed Values: Any number value


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudio.io/ui-components/widgets/barcodescanner.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
