BarCode
Render barcode SVG/canvas của giá trị string bound. Read-only display widget.
Source:
Core/Components/BarCode.cs· ComType:BarCode
Cấu hình
ComType: BarCode
FieldName: Code
Width: 240 # px
Field DB dùng
| Field | Vai trò |
|---|---|
FieldName | Property của entity (string code → encode thành barcode). |
Width | Pixel width của barcode SVG. |
Id | Định danh DOM (rare). |
Events
Không fire event tới user handler — display only.
Tip
- Giá trị
entity.<FieldName>là string code (vd"123456789"). Component tự encode thành barcode. - Width tính bằng px. Để barcode rộng hơn label cha → set
Style: width: 100%thông qua fieldStyle.