ClassTelerikQRCode
Telerik UI QRCode component.
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikQRCode : DataVizComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentDataVizComponentTelerikQRCode
Implements:
Inherited Members
Constructors
TelerikQRCode()
Declaration
public TelerikQRCode()
Properties
Background
The background color of the QR code. Accepts a valid CSS color string, including hex and rgb.
Declaration
[Parameter]
public string Background { get; set; }
Property Value
Color
The color of the QR code. Accepts a valid CSS color string, including hex and rgb.
Encoding
The encoding mode used to encode the value.The possible values are: "ISO_8859_1" - supports all characters from the ISO/IEC 8859-1 character set. or "UTF_8" - supports all Unicode characters..
Declaration
[Parameter]
public QRCodeEncoding? Encoding { get; set; }
Property Value
ErrorCorrection
The error correction level used to encode the value.The possible values are: "L" - approximately 7% of the codewords can be restored.; "M" - approximately 15% of the codewords can be restored.; "Q" - approximately 25% of the codewords can be restored. or "H" - approximately 30% of the codewords can be restored..
Declaration
[Parameter]
public QRCodeErrorCorrectionLevel? ErrorCorrection { get; set; }
Property Value
Padding
Sets the minimum distance in pixels that should be left between the border and the QR modules.
Declaration
[Parameter]
public double? Padding { get; set; }
Property Value
RenderAs
Sets the preferred rendering engine. If it is not supported by the browser, the QRCode will switch to the first available mode.The supported values are: "canvas" - renders the widget as a Canvas element, if available. or "svg" - renders the widget as inline SVG document, if available.
Declaration
[Parameter]
public RenderingMode? RenderAs { get; set; }
Property Value
Size
Specifies the size of a QR code in pixels (i.e. "200px").
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
OnAfterRender(bool)
Declaration
protected override void OnAfterRender(bool firstRender)
Parameters
firstRender
Overrides
OnInitialized()
Declaration
protected override void OnInitialized()
Overrides
OnParametersSet()
Declaration
protected override void OnParametersSet()
Overrides