EditorToolTagHelper
Kendo UI EditorTool TagHelper EditorToolTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("tool", ParentTag = "tools", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("tool-items", new string[] { "tool-template" })]
[SuppressTagRendering]
public class EditorToolTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseEditorToolTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-editor name="editor">
<tools>
<tool name="foreColor" columns="5"></tool>
</tools>
</kendo-editor>
Child Tags
Constructors
Initializes a new instance of the EditorToolTagHelper class.
public EditorToolTagHelper()
Properties
Specifies the colors columns for "foreColor" and "backColor" tools when list of colors are defined.
public double? Columns { get; set; }
The JavaScript function which will be executed when the end-user clicks the tool button.
public string Exec { get; set; }
Specifies the icon that will be rendered for the tools.
public string Icon { get; set; }
When specifying a tool as an object, a tool name is required. Please note that "undo" and "redo" are reserved tool names.
public string Name { get; set; }
Specifies the color palette for "foreColor" and "backColor" tools. If you need to use the color gradient view in the picker instead of the palette, set this value to null.
public string Palette { get; set; }
Specifies custom color palette for "foreColor" and "backColor" tools. For using the default options: "basic" or "websafe" palette attribute.
public string[] PaletteOptions { get; set; }
The kendo template that will be used for rendering the given tool.
public string Template { get; set; }
The kendo template that will be used for rendering the given tool. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The kendo template that will be used for rendering the given tool. This option expects the ID of the script element that contains the template.
public string TemplateId { get; set; }
Represents a collection of templates defined for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The kendo template that will be used for rendering the given tool. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Methods
Adds the current TagHelper instance to its parent TagHelper.
protected override void AddSelfToParent(TagHelperContext context)
The TagHelper context.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.