API reference: @salmonui/charts/barcode/dotcode
DotCodePropsinterface
import type { DotCodeProps } from '@salmonui/charts/barcode/dotcode';interface DotCodeProps extends SymbolBaseProps {
readonly value: string;
readonly columns?: number | undefined;
readonly gs1?: boolean | undefined;
}
| Name | Signature | Description |
|---|---|---|
value | readonly value: string; | ISO 8859-1 text, or a GS1 element string with |
columnsoptional | readonly columns?: number | undefined; | Symbol width in dot columns, 5 to 200 (default automatic, about 3:2). |
gs1optional | readonly gs1?: boolean | undefined; | GS1 DotCode: |
textoptionalinherited | text?: string | boolean; | Human-readable text under the symbol: |
moduleSizeoptionalinherited | moduleSize?: number; | Module (narrow bar or dot) size in px. |
widthoptionalinherited | width?: number; | Total width in px (overrides |
quietZoneoptionalinherited | quietZone?: boolean; | Keep the quiet zone (default true). |
coloroptionalinherited | color?: string; | Bar color: a data color, default |
backgroundoptionalinherited | background?: string; | Background color: a data color, default |
labeloptionalinherited | label?: string; | Accessible name; default the encoded value. |
invalidLabeloptionalinherited | invalidLabel?: string; | Accessible name when the value cannot be encoded ( |
onInvalidoptionalinherited | onInvalid?: ((event: BarcodeInvalidEvent) => void); | |
refoptionalinherited | ref?: Ref<BarcodeApi>; | |
classNameoptionalinherited | className?: string; | |
styleoptionalinherited | style?: CSSProperties; |