public CalendarViewDefinition(string viewType, string viewButtonText, CalendarDurationObject viewDuration = null, CalendarDateFormatter[] slotLabelFormatDefault = null, CalendarDateFormatter columnHeaderFormatDefault = null) { type = viewType; buttonText = viewButtonText; duration = viewDuration; slotLabelFormat = slotLabelFormatDefault; columnHeaderFormat = columnHeaderFormatDefault; }
public static CalendarViewDefinition DayGridMonths(int numberOfMonths, string label = "Months", CalendarDateFormatter[] slotLabelFormatDefault = null, CalendarDateFormatter columnHeaderFormatDefault = null) => new CalendarViewDefinition() { type = CalendarPluginTypes.DayGrid, buttonText = label, duration = CalendarDurationObject.Months(numberOfMonths), slotLabelFormat = slotLabelFormatDefault, columnHeaderFormat = columnHeaderFormatDefault };
public static CalendarViewDefinition DayGridWeeks(int numberOfWeeks, string label = "Weeks", CalendarDateFormatter[] slotLabelFormatDefault = null, CalendarDateFormatter columnHeaderFormatDefault = null) => new CalendarViewDefinition() { Type = CalendarPluginTypes.DayGrid, ButtonText = label, Duration = CalendarDurationObject.FromWeeks(numberOfWeeks), SlotLabelFormat = slotLabelFormatDefault, DayHeaderFormat = columnHeaderFormatDefault };