Captcha
Kendo UI Captcha component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Captcha : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseCaptcha
Implements:
Inherited Members
Constructors
Initializes a new instance of the Captcha class.
public Captcha(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Toggles the audio button.
public bool? AudioButton { get; set; }
The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.
public CrudOperation AudioHandler { get; set; }
The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.
public ClientHandlerDescriptor AudioHandlerFunction { get; set; }
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 string CaptchaId { get; set; }
The source of an image to be rendered as captcha initially. If not set the handler to reset the image will be called.
public string CaptchaImage { get; set; }
The field that returns the captcha's image source. Used in the handler function/response that resets the captcha's image and id.
public string DataCaptchaField { get; set; }
The field that returns the captcha's id. Used in the handler function/response that resets the captcha's image and id.
public string DataCaptchaIdField { get; set; }
The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.
public CrudOperation Handler { get; set; }
The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.
public ClientHandlerDescriptor HandlerFunction { get; set; }
Provides configuration options for the messages present in the Captcha widget.
public CaptchaMessagesSettings Messages { get; set; }
Toggles the reset button.
public bool? ResetButton { get; set; }
public IUrlGenerator UrlGenerator { get; }
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 bool? ValidateOnBlur { get; set; }
The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.
public CrudOperation ValidationHandler { get; set; }
The URL, AJAX settings or function that fetches the audio of the captcha. When used with function, call the args.success method with the source of the audio.
public ClientHandlerDescriptor ValidationHandlerFunction { get; set; }
Whether to show a volume control when audio is played.
public bool? VolumeControl { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: