showAgenda property
Makes SfCalendar agenda view visible on month view.
The month view of SfCalendar will render agenda view along with month, to display the selected date's appointments.
The agendaHeight
property used to customize the height of the agenda
view in month view.
The agendaItemHeight property used to customize the height for each item in agenda view.
Defaults to false
.
see also:
- agendaViewHeight, which is the size for agenda view on month view of calendar.
- agendaItemHeight, which is the size for every appointment in the agenda view of month view in calendar.
- agendaStyle, which is used to customize the agenda view on month view of calendar.
- appointmentDisplayMode, which allows to customize the display mode of appointment view in month cells of calendar.
- Knowledge base: How to customize agenda view height based on widget height
- Knowledge base: How to customize agenda item height
- Knowledge base: How to show appointment in agenda view using programmatic date selection
- Knowledge base: How to customize the agenda view appointment
- Knowledge base: How to clear the appointment in month agenda view using onViewChanged callback
- Knowledge base: How to show a custom agenda view
Widget build(BuildContext context) {
return Container(
child: SfCalendar(
view: CalendarView.month,
monthViewSettings: MonthViewSettings(
dayFormat: 'EEE',
numberOfWeeksInView: 4,
appointmentDisplayCount: 2,
appointmentDisplayMode: MonthAppointmentDisplayMode.appointment,
showAgenda: true,
navigationDirection: MonthNavigationDirection.horizontal),
),
);
}
Implementation
final bool showAgenda;