QRCodeBuilder

Properties

WriteAction - Func

Methods

Border(System.String,System.Int32)

The border of the QR code.

Parameters

color - System.String

The QR code border color.

width - System.Int32

The QR code border width.

RETURNS

Returns the current QRCodeBuilder instance.

Example

Razor
 
            @(Html.Kendo().QRCode()
                .Name("qrCode")
                .Border("green", 5)
            )
             

Background(System.String)

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

Parameters

value - System.String

The value for Background

RETURNS

Returns the current QRCodeBuilder instance.

Border(System.Action)

The border of the QR code.

Parameters

configurator - System.Action<QRCodeBorderSettingsBuilder>

The configurator for the border setting.

RETURNS

Returns the current instance of QRCodeBuilder .

Color(System.String)

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

Parameters

value - System.String

The value for Color

RETURNS

Returns the current QRCodeBuilder instance.

Overlay(System.Action)

The overlay configuration which alows you to choose from predefined layouts or insert a custom image.

Parameters

configurator - System.Action<QRCodeOverlaySettingsBuilder>

The configurator for the overlay setting.

RETURNS

Returns the current instance of QRCodeBuilder .

Padding(System.Double)

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

Parameters

value - System.Double

The value for Padding

RETURNS

Returns the current QRCodeBuilder instance.

RenderAs(Kendo.Mvc.UI.RenderingMode)

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.

Parameters

value - RenderingMode

The value for RenderAs

RETURNS

Returns the current QRCodeBuilder instance.

Size(System.Double)

Specifies the size of a QR code in pixels (i.e. "200px"). Numeric values are treated as pixels. If no size is specified, it will be determined from the element width and height. In case the element has width or height of zero, a default value of 200 pixels will be used.

Parameters

value - System.Double

The value for Size

RETURNS

Returns the current QRCodeBuilder instance.

Value(System.String)

Sets the value of the QRCode. More about the the value of the QRCode can be found in the Encoding documentation article.

Parameters

value - System.String

The value for Value

RETURNS

Returns the current QRCodeBuilder instance.

Encoding(Kendo.Mvc.UI.QREncoding)

Specifies a QR code encoding mode.

Parameters

value - QREncoding

The value for Encoding

RETURNS

Returns the current QRCodeBuilder instance.

ErrorCorrection(Kendo.Mvc.UI.QRErrorCorrectionLevel)

Specifies a QR code error correction level.

Parameters

value - QRErrorCorrectionLevel

The value for ErrorCorrection

RETURNS

Returns the current QRCodeBuilder instance.

ToComponent()

Returns the internal view component.

RETURNS

The instance that represents the component.

Expression(System.String)

Sets the name of the component.

Parameters

modelExpression - System.String

RETURNS

Returns the current instance.

Explorer(Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer)

Sets the name of the component.

Parameters

modelExplorer - Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer

RETURNS

Returns the current instance.

Name(System.String)

Sets the name of the component.

Parameters

componentName - System.String

The name.

RETURNS

Returns the current instance.

Deferred(System.Boolean)

Suppress initialization script rendering. Note that this options should be used in conjunction with

Parameters

deferred - System.Boolean

RETURNS

Returns a DeferredWidgetBuilder instance.

HtmlAttributes(System.Object)

Sets the HTML attributes.

Parameters

attributes - System.Object

The HTML attributes.

RETURNS

Returns the current instance.

HtmlAttributes(System.Collections.Generic.IDictionary)

Sets the HTML attributes.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The HTML attributes.

RETURNS

Returns the current instance.

ScriptAttributes(System.Object,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Object

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

RETURNS

Returns the current instance.

ScriptAttributes(System.Collections.Generic.IDictionary,System.Boolean)

Sets the JavaScript attributes to the initialization script.

Parameters

attributes - System.Collections.Generic.IDictionary<String,Object>

The JavaScript attributes.

overrideAttributes - System.Boolean

Argument which determines whether attributes should be overriden.

RETURNS

Returns the current instance.

Render()

Renders the component in place.

ToHtmlString()

Returns the HTML representation of the component.

WriteTo(System.IO.TextWriter,System.Text.Encodings.Web.HtmlEncoder)

Parameters

writer - System.IO.TextWriter
encoder - System.Text.Encodings.Web.HtmlEncoder

ToClientTemplate()

Returns the client template for the component.

AsModule(System.Boolean)

Specifies whether the initialization script of the component will be rendered as a JavaScript module.

Parameters

value - System.Boolean

RETURNS

Returns the current instance.