コード例 #1
0
 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;
 }
コード例 #2
0
 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
 };
コード例 #3
0
 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
 };