MonthViewSettings class

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

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

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),
     ),
   );
 }

Mixed-in types
Annotations

Constructors

MonthViewSettings({int appointmentDisplayCount = 3, int numberOfWeeksInView = 6, MonthAppointmentDisplayMode appointmentDisplayMode = MonthAppointmentDisplayMode.indicator, bool showAgenda = false, MonthNavigationDirection navigationDirection = MonthNavigationDirection.horizontal, 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.
const

Properties

agendaItemHeight double
The height for each appointment view to layout within this in month agenda view of SfCalendar,.
final
agendaStyle AgendaStyle
Sets the style to customize SfCalendar month agenda view.
final
agendaViewHeight double
The height for agenda view to layout within this in SfCalendar month view.
final
appointmentDisplayCount int
The number of appointments to be displayed in month cell of SfCalendar.
final
appointmentDisplayMode MonthAppointmentDisplayMode
Defines the appointment display mode for the month cell in SfCalendar.
final
dayFormat String
Formats the text in the SfCalendar month view view header.
final
hashCode int
The hash code for this object.
no setteroverride
monthCellStyle MonthCellStyle
Sets the style to customize SfCalendar month cells.
final
The direction tht SfCalendar month view is navigating in.
final
numberOfWeeksInView int
The number of weeks to display in SfCalendar 's month view.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
showAgenda bool
Makes SfCalendar agenda view visible on month view.
final
showTrailingAndLeadingDates bool
Makes the leading and trailing dates visible for the SfCalendar month view.
final

Methods

debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

operator ==(dynamic other) bool
The equality operator.
override