MonthTemplateTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("month", ParentTag = "kendo-calendar", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("month-template", ParentTag = "kendo-datepicker", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("month", ParentTag = "kendo-daterangepicker", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("month", ParentTag = "kendo-multiviewcalendar", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("month-template", ParentTag = "kendo-datetimepicker", TagStructure = TagStructure.NormalOrSelfClosing)]
[RestrictChildren("content-template", new string[] { "empty-template", "week-number-template" })]
[SuppressTagRendering]
public class MonthTemplateTagHelper : TagHelperChildBase, ITagHelper, ITagHelperComponent, ITemplateComponent
Inheritance: objectTagHelperTagHelperChildBaseMonthTemplateTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-calendar name="calendar">
<month content="Month cell"></month>
</kendo-calendar>
Child Tags
Constructors
Initializes a new instance of the MonthTemplateTagHelper class.
public MonthTemplateTagHelper()
Properties
The template to be used for rendering the cells in "month" view, which are between the min/max range.
public string Content { get; set; }
The JavaScript function that returns the template to be used for rendering the cells in "month" view, which are between the min/max range.
public string ContentHandler { get; set; }
The template to be used for rendering the cells in "month" view, which are between the min/max range.
[HtmlAttributeName("content-id")]
public string ContentId { get; set; }
The template to be used for rendering the cells in "month" view, which are between the min/max range.
public IHtmlContent ContentView { get; set; }
The template used for rendering cells in the "month" view, which are outside the min/max range.
public string Empty { get; set; }
The JavaScript function that returns the template used for rendering cells in the "month" view, which are outside the min/max range.
public string EmptyHandler { get; set; }
The template used for rendering cells in the "month" view, which are outside the min/max range.
[HtmlAttributeName("empty-id")]
public string EmptyId { get; set; }
The template used for rendering cells in the "month" view, which are outside the min/max range.
public IHtmlContent EmptyView { get; set; }
Represents a collection of templates defined for the component.
[HtmlAttributeNotBound]
public IDictionary<string, string> Templates { get; }
Implements:
The template to be used for rendering the cells in "week" column. By default, the widget renders the calculated week of the year. The properties available in the data object are: currentDate - returns the first date of the current week. or weekNumber - calculated week number.. These properties can be used in the template to make additional calculations.
public string WeekNumber { get; set; }
The JavaScript function that returns the template to be used for rendering the cells in "week" column. By default, the widget renders the calculated week of the year. The properties available in the data object are: currentDate - returns the first date of the current week. or weekNumber - calculated week number.. These properties can be used in the template to make additional calculations.
public string WeekNumberHandler { get; set; }
The template to be used for rendering the cells in "week" column. By default, the widget renders the calculated week of the year. The properties available in the data object are: currentDate - returns the first date of the current week. or weekNumber - calculated week number.. These properties can be used in the template to make additional calculations.
[HtmlAttributeName("week-number-id")]
public string WeekNumberId { get; set; }
The template to be used for rendering the cells in "week" column. By default, the widget renders the calculated week of the year. The properties available in the data object are: currentDate - returns the first date of the current week. or weekNumber - calculated week number.. These properties can be used in the template to make additional calculations.
public IHtmlContent WeekNumberView { 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.