Kendo UI resources TagHelper GanttResourcesSettingsTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("resources", ParentTag = "kendo-gantt", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("datasource", new string[] { })]
[SuppressTagRendering]
public class GanttResourcesSettingsTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<DataSourceTagHelper>
Inheritance: objectTagHelperTagHelperChildBaseGanttResourcesSettingsTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-gantt name="gantt">
<resources bind-to="new List<string>()">
</resources>
</kendo-gantt>
Child Tags
Constructors
Initializes a new instance of the GanttResourcesSettingsTagHelper class.
public GanttResourcesSettingsTagHelper()
Properties
Sets the data for the datasource
public IEnumerable<object> BindTo { get; set; }
The field of the resource data item which contains the resource color.
[HtmlAttributeName("datacolorfield")]
public string DataColorField { get; set; }
The field of the resource data item containing the format of the resource value, which could be assigned to a gantt task. The data item format value could be any valid kendo format.
[HtmlAttributeName("dataformatfield")]
public string DataFormatField { get; set; }
The ID/Name of the DataSource tag helper
public string DatasourceId { get; set; }
The field of the resource data item which represents the resource text.
[HtmlAttributeName("datatextfield")]
public string DataTextField { 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.