appointmentDisplayMode property
Defines the appointment display mode for the month cell in SfCalendar.
Defaults to MonthAppointmentDisplayMode.indicator
.
See also:
- MonthAppointmentDisplayMode, to know more about the available display options for appointment view in month cell of calendar.
- appointmentDisplayCount, which allows to customize the number of appointment displaying on a month cell of month view in calendar.
- showAgenda, which allows to display agenda view as a part of month view in calendar.
- agendaViewHeight, which is the size for agenda view on month view of calendar.
- agendaItemHeight, which is the size for every single appointment view in agenda view of month view in calendar.
- Knowledge base: How to handle the appointment display mode
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.month,
monthViewSettings: MonthViewSettings(
dayFormat: 'EEE',
numberOfWeeksInView: 4,
appointmentDisplayCount: 2,
appointmentDisplayMode: MonthAppointmentDisplayMode.appointment,
showAgenda: false,
navigationDirection: MonthNavigationDirection.horizontal),
),
);
}
Implementation
final MonthAppointmentDisplayMode appointmentDisplayMode;