Signature
Kendo UI Signature component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class Signature : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseSignature
Implements:
Inherited Members
Constructors
Initializes a new instance of the Signature class.
public Signature(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
Gets or sets the background color of the signature.
public string BackgroundColor { get; set; }
If set to false, the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
public bool? Enable { get; set; }
Sets a value controlling how the color is applied. Can also be set to the following string values: "solid"; "flat"; "outline" or "none".
public FillMode? FillMode { get; set; }
Determines the height of the signature in pixels.
public double? Height { get; set; }
A value indicating whether the dotted line should be displayed in the background.
public bool? HideLine { get; set; }
Specifies the label that will be rendered on the k-signature-canvas element of the component with the aria-label attribute.
public string Label { get; set; }
A value indicating whether the component can be maximized
public bool? Maximizable { get; set; }
Defines a value indicating the scaling size of the popup signature pad
public double? PopupScale { get; set; }
If set to true, the widget will be readonly and will not allow user input. The widget is not readonly by default and allows user input.
public bool? Readonly { get; set; }
Sets a value controlling the border radius. Can also be set to the following string values: "small"; "medium"; "large"; "full" or "none".
public Rounded? Rounded { get; set; }
Sets a value controlling size of the component. Can also be set to the following string values: "small"; "medium"; "large" or "none".
public ComponentSize? Size { get; set; }
A value indicating whether to smoothen out the signature lines.
public bool? Smooth { get; set; }
Defines how wide will the stroke be.
public double? StrokeWidth { get; set; }
A string value representing a Base64-encoded PNG image
public string Value { 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: