CaptchaBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET Core Captcha
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class CaptchaBuilder : WidgetBuilderBase<Captcha, CaptchaBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<Captcha, CaptchaBuilder>CaptchaBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the CaptchaBuilder class.
Methods
Toggles the audio button.
public CaptchaBuilder AudioButton(bool value)
The value for AudioButton
Returns:Returns the current CaptchaBuilder instance.
The URL or AJAX settings that fetches the audio of the captcha.
public CaptchaBuilder AudioHandler(Action<CrudOperationBuilder> configurator)
The action that configures the audio settings.
Returns:Returns the current CaptchaBuilder instance.
Defines the URL that fetches the audio of the captcha.
public CaptchaBuilder AudioHandler(string url)
The URL that returns the audio source.
Returns:Returns the current CaptchaBuilder instance.
The JavaScript function that fetches the audio of the captcha. Within the function, call the "args.success" method with the source of the audio (base64 stream).
public CaptchaBuilder AudioHandlerFunction(string handler)
The JavaScript function that returns the source of the audio.
Returns:Returns the current CaptchaBuilder instance.
The ID of the captcha to be added to the hidden input initially. If not set the handler to reset the ID will be called.
public CaptchaBuilder CaptchaId(string value)
The value for CaptchaId
Returns:Returns the current CaptchaBuilder instance.
Specifies the source of an image to be rendered in the Captcha initially. If the option is not defined, the handler that resets the image will be called.
public CaptchaBuilder CaptchaImage(string captchaImage)
The value that configures the image.
Returns:Returns the current CaptchaBuilder instance.
The field that returns the captcha's image source. Used in the handler function/response that resets the captcha's image and id.
public CaptchaBuilder DataCaptchaField(string value)
The value for DataCaptchaField
Returns:Returns the current CaptchaBuilder instance.
The field that returns the captcha's id. Used in the handler function/response that resets the captcha's image and id.
public CaptchaBuilder DataCaptchaIdField(string value)
The value for DataCaptchaIdField
Returns:Returns the current CaptchaBuilder instance.
Configures the client-side events.
public CaptchaBuilder Events(Action<CaptchaEventBuilder> configurator)
The client events action.
Returns:Returns the current CaptchaBuilder instance.
Defines the URL or AJAX settings that fetches the captcha image and id. The request triggers initially when the CaptchaImage() and CaptchaId() options are not defined to request the captcha and when the "Reset" button is clicked.
public CaptchaBuilder Handler(Action<CrudOperationBuilder> configurator)
The action that configures the endpoint to return the image initially or when resetting the Captcha.
Returns:Returns the current CaptchaBuilder instance.
Defines the URL that fetches the captcha image and id.
public CaptchaBuilder Handler(string url)
The URL that returns the captcha image and id.
Returns:Returns the current CaptchaBuilder instance.
The JavaScript function that fetches the captcha image and id. Within the function, call the "args.success()" method with the received captcha image and id.
public CaptchaBuilder HandlerFunction(string handler)
The JavaScript function that returns the captcha image and id.
Returns:Returns the current CaptchaBuilder instance.
Provides configuration options for the messages present in the Captcha widget.
public CaptchaBuilder Messages(Action<CaptchaMessagesSettingsBuilder> configurator)
The CaptchaMessagesSettingsBuilder for the messages setting.
Returns:Returns the current instance of CaptchaBuilder .
Toggles the reset button.
public CaptchaBuilder ResetButton(bool value)
The value for ResetButton
Returns:Returns the current CaptchaBuilder instance.
Whether to trigger validation when input is blurred. This option is useful if you are not using the Kendo Validator or the Kendo Form widgets as it enables to automatically trigger remote validation and use the widet's API in custom validation scenario.
Whether to trigger validation when input is blurred. This option is useful if you are not using the Kendo Validator or the Kendo Form widgets as it enables to automatically trigger remote validation and use the widet's API in custom validation scenario.
public CaptchaBuilder ValidateOnBlur(bool value)
The value for ValidateOnBlur
Returns:Returns the current CaptchaBuilder instance.
Defines the URL or AJAX settings that validates the text input of the Captcha.
public CaptchaBuilder ValidationHandler(Action<CrudOperationBuilder> configurator)
The action that configures the validation of the Captcha.
Returns:Returns the current CaptchaBuilder instance.
Defines the URL of the endpoint that validates the text input of the Captcha.
public CaptchaBuilder ValidationHandler(string url)
The URL of the endpoint.
Returns:Returns the current CaptchaBuilder instance.
The JavaScript function that validates the text input of the Captcha. Within the function, call the "args.success()" method with the boolean value indicating whether the validation passed successfully.
public CaptchaBuilder ValidationHandlerFunction(string handler)
The JavaScript function that validates the Captcha.
Returns:Returns the current CaptchaBuilder instance.
Whether to show a volume control when audio is played.
public CaptchaBuilder VolumeControl(bool value)
The value for VolumeControl
Returns:Returns the current CaptchaBuilder instance.