Kendo UI content TagHelper DiagramConnectionDefaultsContentSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("content", ParentTag = "connection-defaults", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("content-template", new string[] { "position", "border", "padding" })]
[SuppressTagRendering]
public class DiagramConnectionDefaultsContentSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseDiagramConnectionDefaultsContentSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-diagram name="diagram">
<connection-defaults>
<content background="#f0f0f0" />
</connection-defaults>
</kendo-diagram>
Child Tags
Constructors
Initializes a new instance of the DiagramConnectionDefaultsContentSettingsTagHelper class.
public DiagramConnectionDefaultsContentSettingsTagHelper()
Properties
The background color of the connection label. Accepts valid CSS colors.
public string Background { get; set; }
The font family of the connection content text.
public string FontFamily { get; set; }
The font size of the connection content text.
public double? FontSize { get; set; }
The font style of the connection content text.
public string FontStyle { get; set; }
The font weight of the connection content text.
public string FontWeight { get; set; }
Defines the distance (in pixels) between the label and the connection path.
public double? Offset { get; set; }
Defines the position of the label relative to the connection path. Can be set to "inline" to position the label along the connection path, or an object with vertical and horizontal properties.
[HtmlAttributeName("position")]
public string PositionValue { get; set; }
The template which renders the labels.The fields which can be used in the template are: dataItem - the data item, in case 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, in case 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, in case 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, in case a field has been specified. 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.