ImageEditorTagHelper
Kendo UI ImageEditor TagHelper ImageEditorTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-imageeditor")]
[RestrictChildren("save-as", new string[] { "toolbar", "imageeditor-messages" })]
public class ImageEditorTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseImageEditorTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-imageeditor name="imageeditor" height="400">
</kendo-imageeditor>
Child Tags
Constructors
Initializes a new instance of the ImageEditorTagHelper class.
public ImageEditorTagHelper(IKendoHtmlGenerator generator)
Properties
Sets the label used for the <canvas> element to describe the image contents.
public string ImageLabel { get; set; }
Sets the url (or base64 string) for the image to open.
public string ImageUrl { get; set; }
The name of the JavaScript function that will handle the error event. Fired when an error happened with the image loading.
public string OnError { get; set; }
The name of the JavaScript function that will handle the execute event. Fired when a command is executed.
public string OnExecute { get; set; }
The name of the JavaScript function that will handle the imageLoaded event. Fired when image is loaded. Can prevent the image rendering by calling the preventDefault() method.
public string OnImageLoaded { get; set; }
The name of the JavaScript function that will handle the imageRendered event. Fired when canvas is rendered with the image. This event is triggered by commands and when drawCanvas method is called.
public string OnImageRendered { get; set; }
The name of the JavaScript function that will handle the kendoKeydown event. Triggered when the user presses a keyboard key while the ImageEditor is focused.The event handler function context (available via the this keyword) will be set to the widget instance.
public string OnKendoKeydown { 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:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: