Barcode widget

Updated at:

This topic describes the attributes and rendering effects of a barcode widget.

Left margin and top margin

You can click the up or down arrow in the spin box for the left or top margin to fine-tune the margin. You can also drag and drop the widget on the canvas to adjust the left and top margins. After the left and top margins are modified, the widget is moved to the location determined by the specified margins.

Height and width

The height and width of the widget determine the size of the widget on the canvas. The width of the barcode widget indicates the maximum length of the barcode content that can be displayed. If the content is longer than the maximum length, the excessive content is not displayed.

Rendering effect of the height and width

Color

You can change the color of the widget. By default, the background color of the barcode widget is white. The available colors vary based on the device on which the widget is displayed. For example, if the widget is displayed on a tricolored electronic paper display (EPD), the available colors are black, white, and red.

Color legend

Alignment

The alignment of the barcode widget determines the definition of the left margin. The content of the barcode varies based on the commodity, and a long barcode may not be fully displayed. The alignment attribute is provided to prevent this issue.

  • Left indicates that the left margin is the distance between the far left of the canvas and the far left of the widget.

  • Right indicates that the left margin is the distance between the far left of the canvas and the far right of the widget.

  • Medium indicates that the left margin is the distance between the far left of the canvas and the middle of the widget.

Barcode content

The barcode widget displays the barcode of a commodity. The Demo Content parameter allows you to enter a sample value to preview the rending effect of a barcode when you edit the template.

The default value of the Content Field parameter is Barcode Image, and the value cannot be modified. If an electronic shelf label (ESL) is bound to a commodity, the system dynamically generates the barcode of the commodity and displays the barcode on the ESL.