Kendo UI content TagHelper DiagramShapeDefaultsContentSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("content", ParentTag = "shape-defaults", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("content-template", new string[] { "padding", "relative-padding" })]
[SuppressTagRendering]
public class DiagramShapeDefaultsContentSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseDiagramShapeDefaultsContentSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-diagram name="diagram">
<shape-defaults>
<content align="top right"></content>
</shape-defaults>
</kendo-diagram>
Child Tags
Constructors
Initializes a new instance of the DiagramShapeDefaultsContentSettingsTagHelper class.
public DiagramShapeDefaultsContentSettingsTagHelper()
Properties
The alignment of the text inside the shape. You can do combinations between "top", "middle" and "bottom" for vertical align and "right", "center" and "left" for horizontal align. For example, "top right", "middle left", "bottom center", and so on.
public string Align { get; set; }
The font family of the shape content text.
public string FontFamily { get; set; }
The font weight of the shape content text.
public string FontWeight { get; set; }
The spacing between lines of text in the shape.
public double? LineSpacing { get; set; }
The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified.
public string Template { get; set; }
The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
The template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified. 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 template which renders the labels.The fields which can be used in the template are: dataItem - The data item if a field has been specified. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Configures the text wrapping behavior in the shape. Supported values are "nowrap" and "wrap".
public ShapeTextWrap? TextWrap { 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.