TaskBoardTagHelper
Kendo UI TaskBoard TagHelper TaskBoardTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-taskboard")]
[RestrictChildren("card-menu", new string[] { "column-settings", "editable", "preview-pane", "taskboard-resources", "toolbar", "messages", "datasource", "taskboard-columns", "taskboard-template" })]
public class TaskBoardTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IDataBoundWidget<DataSourceTagHelper>, ITemplateComponent
Inheritance: objectTagHelperTagHelperBaseTaskBoardTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-taskboard name="taskBoard" datatitlefield="title" datastatusfield="OwnerID" datadescriptionfield="Description" datacategoryfield="ID" on-execute-command="onExecute" template-id="card-template" height="750">
<datasource>
<transport>
<read url="@Url.Action("Tag_Helper_Tasks_Read", "TaskBoard")" />
<create url="@Url.Action("Tag_Helper_Tasks_Create", "TaskBoard")" />
<update url="@Url.Action("Tag_Helper_Tasks_Update", "TaskBoard")" />
<destroy url="@Url.Action("Tag_Helper_Tasks_Destroy", "TaskBoard")" />
</transport>
<schema data="Data" total="Total" errors="Errors">
<model id="TaskID">
<fields>
<field name="TaskID" type="number"></field>
<field name="title" from="Title" type="string"></field>
<field name="Description" from="Description" type="string"></field>
<field name="OwnerID" type="number" default-value="0"></field>
</fields>
</model>
</schema>
</datasource>
<column-settings datatextfield="Text" datastatusfield="ID">
</column-settings>
<taskboard-columns>
<datasource>
<transport>
<read url="@Url.Action("Tag_Helper_Columns_Read", "TaskBoard")" />
<create url="@Url.Action("Tag_Helper_Columns_Create", "TaskBoard")" />
<update url="@Url.Action("Tag_Helper_Columns_Update", "TaskBoard")" />
<destroy url="@Url.Action("Tag_Helper_Columns_Destroy", "TaskBoard")" />
</transport>
<schema data="Data" total="Total" errors="Errors">
<model id="ID">
<fields>
<field name="ID" type="number"></field>
<field name="Text" from="Text" type="string"></field>
</fields>
</model>
</schema>
</datasource>
</taskboard-columns>
</kendo-taskboard>
Child Tags
Constructors
Initializes a new instance of the TaskBoardTagHelper class.
Properties
Controls whether to bind the TaskBoard to the data source on initialization.
public bool? AutoBind { get; set; }
Binds the TaskBoard DataSource to a collection of items.
public IEnumerable<object> BindTo { get; set; }
The category field of the card.
[HtmlAttributeName("datacategoryfield")]
public string DataCategoryField { get; set; }
The description field of the card.
[HtmlAttributeName("datadescriptionfield")]
public string DataDescriptionField { get; set; }
The field used to order cards (number based). If not set, cards will be rendered in the order they are fetched. And ordering will not be applied to the DataSource and respectively, not synced with the remote data source.
[HtmlAttributeName("dataorderfield")]
public string DataOrderField { get; set; }
The ID of the DataSource tag helper.
public string DatasourceId { get; set; }
The field of the data item that provides the status of the card. Mapped with the status of the columns.
[HtmlAttributeName("datastatusfield")]
public string DataStatusField { get; set; }
The title field of the card.
[HtmlAttributeName("datatitlefield")]
public string DataTitleField { get; set; }
The name of the JavaScript function that will handle the change event. Fired when the user changed the card order or status by dragging.
public string OnChange { get; set; }
The name of the JavaScript function that will handle the columnsDataBinding event. Fired before the TaskBoard binds the columns' data source.
public string OnColumnsDataBinding { get; set; }
The name of the JavaScript function that will handle the columnsDataBound event. Fired when the TaskBoard's columns are bound to their data source.
public string OnColumnsDataBound { get; set; }
The name of the JavaScript function that will handle the dataBinding event. Fired before the TaskBoard binds to its data source.
public string OnDataBinding { get; set; }
The name of the JavaScript function that will handle the dataBound event. Fired when the TaskBoard is bound to data from its data source.
public string OnDataBound { get; set; }
The name of the JavaScript function that will handle the deleteCard event. Fired when the user deletes a card.
public string OnDeleteCard { get; set; }
The name of the JavaScript function that will handle the deleteColumn event. Fired when the user deletes a column.
public string OnDeleteColumn { get; set; }
The name of the JavaScript function that will handle the editCard event. Fired when the user edits or creates a card.
public string OnEditCard { get; set; }
The name of the JavaScript function that will handle the editColumn event. Fired when the user edits or creates a column.
public string OnEditColumn { get; set; }
The name of the JavaScript function that will handle the execute event. Fires when a command is executed.
public string OnExecute { get; set; }
The name of the JavaScript function that will handle the move event. Fired when the user moves a card.
public string OnMove { get; set; }
The name of the JavaScript function that will handle the moveEnd event. Fired when the user dropped a card in a column.
public string OnMoveEnd { get; set; }
The name of the JavaScript function that will handle the moveStart event. Fired when the user started moving a card.
public string OnMoveStart { get; set; }
The name of the JavaScript function that will handle the saveCard event. Fired when the user saves a card.
public string OnSaveCard { get; set; }
The name of the JavaScript function that will handle the saveColumn event. Fired when the user saves a column.
public string OnSaveColumn { get; set; }
The name of the JavaScript function that will handle the select event. Fired when the user selects a card in the TaskBoard.
public string OnSelect { get; set; }
Toggles the reordering of cards in the TaskBoard.
public bool? Reorderable { get; set; }
Toggles the selection of the TaskBoard.
public bool? Selectable { get; set; }
Controls the rendering of the card. This option expects the name of a JavaScript function that will be called to return the template.
public string TemplateHandler { get; set; }
Controls the rendering of the card. 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:
Controls the rendering of the card. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TemplateView { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: