SignatureTagHelper
Kendo UI Signature TagHelper SignatureTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-signature")]
[HtmlTargetElement("signature-editor", ParentTag = "form-item")]
[HtmlTargetElement("signature-editor", ParentTag = "property-grid-item")]
public class SignatureTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IKendoFormEditor
Inheritance: objectTagHelperTagHelperBaseSignatureTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-signature name="signature" background-color="#f2f2f2"></kendo-signature>
Constructors
Initializes a new instance of the SignatureTagHelper class.
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.
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; }
IsNested member.
[HtmlAttributeNotBound]
public bool IsNested { get; set; }
Implements:
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; }
The name of the JavaScript function that will handle the change event. Fired when the value of the widget is changed by the user.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the close event. Fired when the value popup of the component is changed
public string OnClose { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the Signature is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { get; set; }
The name of the JavaScript function that will handle the open event. Fired when the value of the widget is changed by the user.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnOpen { 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 size of the component.
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
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
TryAddAsEditor method.
public bool TryAddAsEditor(TagHelperContext context)
The result.
Implements:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: