[]
        
(Showing Draft Content)

C1.Web.Mvc.TagHelpers.CalendarTagHelper

CalendarTagHelper Class

ITagHelper implementation for Calendar.

Namespace: C1.Web.Mvc.TagHelpers
Assembly: C1.AspNetCore.Mvc.dll
Syntax
[HtmlTargetElement("c1-calendar")]
public class CalendarTagHelper : InputBaseTagHelper<Calendar>, ITagHelper, ITagHelperComponent, ITemplateTagHelper

Constructors

Name Description
CalendarTagHelper()

Properties

Name Description
DisplayMonth

Configurates DisplayMonth. Sets the month displayed in the calendar.

DisplayMonthChanged

Configurates the OnClientDisplayMonthChanged client event. Occurs after the DisplayMonth property changes.

FirstDayOfWeek

Configurates FirstDayOfWeek. Sets a value that represents the first day of the week, the one displayed in the first column of the calendar.

FormatDayHeaders

Configurates FormatDayHeaders. Sets the format used to display the headers above the days in month view.

FormatDays

Configurates FormatDays. Sets the format used to display the days in month view.

FormatItem

Configurates the OnClientFormatItem client event. Occurs when an element representing a day in the calendar has been created.

FormatMonths

Configurates FormatMonths. Sets the format used to display the months in year view.

FormatYear

Configurates FormatYear. Sets the format used to display the year above the months in year view.

FormatYearMonth

Configurates FormatYearMonth. Sets the format used to display the month and year above the calendar in month view.

HandleWheel

Configurates HandleWheel. Sets a value that determines whether the user can change the current displayMonth using the mouse wheel.

IsReadOnly

Configurates IsReadOnly. Sets a value that indicates whether the user can modify the control value using the mouse and keyboard.

ItemFormatter

Configurates ItemFormatter. Sets a formatter function to customize dates in the calendar.

ItemValidator

Configurates ItemValidator. Sets the name of a validator javascript function to determine whether dates are valid for selection.

Max

Configurates Max. Sets the latest date that the user can select in the calendar.

Min

Configurates Min. Sets the earliest date that the user can select in the calendar.

MonthCount

Configurates MonthCount. Sets the number of months to display within the calendar.

MonthView

Configurates MonthView. Sets a value indicating whether the calendar displays a month or a year.

RangeChanged

Configurates the OnClientRangeChanged client event. Occurs when the value of the rangeEnd property changes into a non-null value, indicating a data range has been selected.

RangeEnd

Configurates RangeEnd. Sets the last selected date in a range selection.

RangeEndChanged

Configurates the OnClientRangeEndChanged client event. Occurs when the value of the RangeEnd property changes

RangeMax

Configurates RangeMax. Sets the maximum length allowed when editing date ranges.

RangeMin

Configurates RangeMin. Sets the minimum number of days allowed when editing date ranges.

RepeatButtons

Configurates RepeatButtons. Sets a value that determines whether the calendar buttons should act as repeat buttons, firing repeatedly as the button remains pressed.

SelectionMode

Configurates SelectionMode. Sets a value that indicates whether users can select days, months, or no values at all.

ShowHeader

Configurates ShowHeader. Sets a value indicating whether the control displays the header area with the current month and navigation buttons.

ShowMonthPicker

Configurates ShowMonthPicker. Sets a value that determines whether the calendar should display a list of months when the user clicks the header element on the month calendar.

ShowYearPicker

Configurates ShowYearPicker. Sets a value that determines whether the calendar should display a list of years when the user clicks the header element on the year calendar.

Value

Configurates Value. Sets the currently selected date.

ValueChanged

Configurates the OnClientValueChanged client event. Occurs after a new date is selected.

WeeksAfter

Configurates WeeksAfter. Sets the number of weeks to show on the calendar after the current month.

WeeksBefore

Configurates WeeksBefore. Sets the number of weeks to show on the calendar before the current month.