Kendo UI TaskBoardResource TagHelper TaskBoardResourceTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("resource", ParentTag = "taskboard-resources", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("datasource", new string[] { })]
[SuppressTagRendering]
public class TaskBoardResourceTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<DataSourceTagHelper>
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseTaskBoardResourceTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
@{
var resources = new List<ResourceAssignmentViewModel>();
}
<kendo-taskboard name="taskboard">
<taskboard-resources>
<resource bind-to="@resources"></resource>
</taskboard-resources>
</kendo-taskboard>
Child Tags
Constructors
Initializes a new instance of the TaskBoardResourceTagHelper class.
public TaskBoardResourceTagHelper()
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 ID 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; }
The field of the resource data item which represents the resource value. The resource value is used to link a TaskBoard event with a resource.
[HtmlAttributeName("datavaluefield")]
public string DataValueField { get; set; }
The field of the TaskBoard event which contains the resource id.
public string Field { get; set; }
If set to true the TaskBoard event can be assigned multiple instances of the resource. The TaskBoard event field specified via the field option will contain an array of resources. By default only one resource instance can be assigned to an event.
public bool? Multiple { get; set; }
The name of the resource used to distinguish resource. If not set the value of the field option is used.
public string Name { get; set; }
The user friendly title of the resource displayed in the TaskBoard edit form. If not set the value of the field option is used.
public string Title { get; set; }
Set to false if the TaskBoard event field specified via the field option contains a resource data item. By default the TaskBoard expects that field to contain a primitive value (string, number) which corresponds to the "value" of the resource (specified via dataValueField).
public bool? ValuePrimitive { 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.