monthViewSettings property

MonthViewSettings monthViewSettings
final

The settings have properties which allow to customize the month view of the SfCalendar.

Allows to customize the MonthViewSettings.dayFormat, MonthViewSettings.numberOfWeeksInView, MonthViewSettings.appointmentDisplayMode, MonthViewSettings.showAgenda, MonthViewSettings.appointmentDisplayCount, and MonthViewSettings.navigationDirection in month view of calendar.

See also:


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 MonthViewSettings monthViewSettings;