Skip to main content

QR Code

shadow

Kód pozostávajúci z poľa čiernych a bielych štvorcov, ktorý sa zvyčajne používa na ukladanie adries URL alebo iných informácií na čítanie fotoaparátom na smartfóne. Tieto qr kódy si je možné jednoducho prispôsobiť použitím rôznych atribútov.

Základné použitie

Ak chcete použiť komponent QR, zahrňte ho do HTML s požadovanými atribútmi.

Atribúty a Vlastnosti

value

DescriptionThe value to be encoded into the QR code.
Attributevalue
Typestring
Default"empty value"

background

DescriptionQR code background colour.
Attributebackground
Typestring
Defaultundefined

backgroundAlpha

DescriptionQR code background transparency (0-1).
AttributebackgroundAlpha
Typenumber
Defaultundefined

foreground

DescriptionForeground colour of the QR code.
Attributeforeground
Typestring
Defaultundefined

foregroundAlpha

DescriptionQR code foreground transparency (0-1).
AttributeforegroundAlpha
Typenumber
Defaultundefined

level

DescriptionQR code error correction level (L, M, Q, H).
Attributelevel
Typestring
Defaultundefined

padding

DescriptionInternal QR code offset in pixels.
Attributepadding
Typenumber
Defaultundefined

size

DescriptionQR code size in pixels.
Attributesize
Typenumber
Defaultundefined

Eventy

No events available for this component.

Metódy

No public methods available for this component.

CSS Shadow Parts

NameDescription
nativeRefers to the canvas inside the element.

CSS Custom Vlastnosti

No CSS custom properties available for this component.

Sloty

NameDescription
topSlot for content at the top of the QR code.
bottomSlot for content at the bottom of the QR code.