GanttViewTagHelper
Kendo UI GanttView TagHelper GanttViewTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("gantt-view", ParentTag = "views", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("range", new string[] { })]
[SuppressTagRendering]
public class GanttViewTagHelper : TagHelperCollectionItemBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperChildBaseTagHelperCollectionItemBaseGanttViewTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-gantt name="gantt">
<views>
<gantt-view type="GanttViewType.Day" date="new DateTime(2024, 6, 1)" />
</views>
</kendo-gantt>
Child Tags
Constructors
Initializes a new instance of the GanttViewTagHelper class.
public GanttViewTagHelper()
Properties
If set to some date and it is between the range start and range end of the selected view, the timeline of the currently selected view is scrolled to start from this date.Overrides the date option of the gantt.
public DateTime? Date { get; set; }
The template used to render the day slots in "day" and "week" views.
public string DayHeaderTemplate { get; set; }
The template used to render the day slots in "day" and "week" views. This option expects the name of a JavaScript function that will be called to return the template.
public string DayHeaderTemplateHandler { get; set; }
The template used to render the day slots in "day" and "week" views. This option expects the ID of the script element that contains the template.
public string DayHeaderTemplateId { get; set; }
The template used to render the day slots in "day" and "week" views. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent DayHeaderTemplateView { get; set; }
The template used to render the month slots in "month" and "year" views.
public string MonthHeaderTemplate { get; set; }
The template used to render the month slots in "month" and "year" views. This option expects the name of a JavaScript function that will be called to return the template.
public string MonthHeaderTemplateHandler { get; set; }
The template used to render the month slots in "month" and "year" views. This option expects the ID of the script element that contains the template.
public string MonthHeaderTemplateId { get; set; }
The template used to render the month slots in "month" and "year" views. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent MonthHeaderTemplateView { get; set; }
The format used to display the start and end dates in the resize tooltip.
public string ResizeTooltipFormat { get; set; }
If set to true the view will be initially selected by the Gantt widget. The default selected view is "day".
public bool? Selected { get; set; }
The size of the time slot headers. Values are treated as pixels.
public double? SlotSize { get; set; }
The template used to render the time slots in "day" view
public string TimeHeaderTemplate { get; set; }
The template used to render the time slots in "day" view This option expects the name of a JavaScript function that will be called to return the template.
public string TimeHeaderTemplateHandler { get; set; }
The template used to render the time slots in "day" view This option expects the ID of the script element that contains the template.
public string TimeHeaderTemplateId { get; set; }
The template used to render the time slots in "day" view This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent TimeHeaderTemplateView { get; set; }
The view type. Supported types are "day", "week", "month" and "year".
public GanttViewType? Type { get; set; }
The template used to render the week slots in "week" and "month" views.
public string WeekHeaderTemplate { get; set; }
The template used to render the week slots in "week" and "month" views. This option expects the name of a JavaScript function that will be called to return the template.
public string WeekHeaderTemplateHandler { get; set; }
The template used to render the week slots in "week" and "month" views. This option expects the ID of the script element that contains the template.
public string WeekHeaderTemplateId { get; set; }
The template used to render the week slots in "week" and "month" views. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent WeekHeaderTemplateView { get; set; }
The template used to render the year slots in "year" view.
public string YearHeaderTemplate { get; set; }
The template used to render the year slots in "year" view. This option expects the name of a JavaScript function that will be called to return the template.
public string YearHeaderTemplateHandler { get; set; }
The template used to render the year slots in "year" view. This option expects the ID of the script element that contains the template.
public string YearHeaderTemplateId { get; set; }
The template used to render the year slots in "year" view. This option expects the IHtmlContent instance containing the created HTML.
public IHtmlContent YearHeaderTemplateView { 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.