MonthViewSettings constructor
const
MonthViewSettings({
- int appointmentDisplayCount = 3,
- int numberOfWeeksInView = 6,
- MonthAppointmentDisplayMode appointmentDisplayMode = MonthAppointmentDisplayMode.indicator,
- bool showAgenda = false,
- String dayFormat = 'EE',
- double agendaItemHeight = -1,
- bool showTrailingAndLeadingDates = true,
- double agendaViewHeight = -1,
- MonthCellStyle monthCellStyle = const MonthCellStyle(),
- AgendaStyle agendaStyle = const AgendaStyle(),
Creates a Month view settings for calendar.
The properties allows to customize the month view of SfCalendar.
Implementation
const MonthViewSettings(
{this.appointmentDisplayCount = 3,
this.numberOfWeeksInView = 6,
this.appointmentDisplayMode = MonthAppointmentDisplayMode.indicator,
this.showAgenda = false,
this.navigationDirection = MonthNavigationDirection.horizontal,
this.dayFormat = 'EE',
this.agendaItemHeight = -1,
this.showTrailingAndLeadingDates = true,
this.agendaViewHeight = -1,
this.monthCellStyle = const MonthCellStyle(),
this.agendaStyle = const AgendaStyle()})
: assert(appointmentDisplayCount >= 0),
assert(numberOfWeeksInView >= 1 && numberOfWeeksInView <= 6),
assert(agendaItemHeight >= -1),
assert(agendaViewHeight >= -1);