Class
TelerikQRCode

Telerik UI QRCode component.

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikQRCode : DataVizComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentDataVizComponentTelerikQRCode

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.OnAfterRenderAsync(bool)BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnParametersSetAsync()ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikQRCode()

Declaration

cs-api-definition
public TelerikQRCode()

Properties

Background

The background color of the QR code. Accepts a valid CSS color string, including hex and rgb.

Declaration

cs-api-definition
[Parameter]
public string Background { get; set; }

Property Value

string

Color

The color of the QR code. Accepts a valid CSS color string, including hex and rgb.

Declaration

cs-api-definition
[Parameter]
public string Color { get; set; }

Property Value

string

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

cs-api-definition
[Parameter]
public QRCodeEncoding? Encoding { get; set; }

Property Value

QRCodeEncoding?

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

cs-api-definition
[Parameter]
public QRCodeErrorCorrectionLevel? ErrorCorrection { get; set; }

Property Value

QRCodeErrorCorrectionLevel?

Padding

Sets the minimum distance in pixels that should be left between the border and the QR modules.

Declaration

cs-api-definition
[Parameter]
public double? Padding { get; set; }

Property Value

double?

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

cs-api-definition
[Parameter]
public RenderingMode? RenderAs { get; set; }

Property Value

RenderingMode?

Size

Specifies the size of a QR code in pixels (i.e. "200px").

Declaration

cs-api-definition
[Parameter]
public string Size { get; set; }

Property Value

string

Value

The value of the QRCode.

Declaration

cs-api-definition
[Parameter]
public string Value { get; set; }

Property Value

string

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnAfterRender(bool)

Declaration

cs-api-definition
protected override void OnAfterRender(bool firstRender)

Parameters

firstRender

bool

Overrides DataVizComponent.OnAfterRender(bool)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides DataVizComponent.OnInitialized()

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides DataVizComponent.OnParametersSet()