CalendarWeekPageSource
An implementation of CalendarPageSource that loads one week per page. The default range for the calendar is 500 years before and after the given startDate, and can be overridden by setting maxPageRange.
Constructors
Types
Functions
Get the page number for the given date. This function should be as lightweight as possible, as no results here are cached.
Takes a page number and a DisplayDate producer, and returns a set of rows to display in the calendar UI. This should not implement any caching itself, caching is handled by consumers.
Maps the given internal position of a zero-based pager to the page number. Note this is not necessary if we have a pager that supports negative numbers in the first place.
Maps the given page number to an internal zero-based position. Note this is not necessary if we have a pager that supports negative numbers in the first place.
Properties
Defines the maximum number of pages to be displayed. Pages are zero-based, therefore negative values represent pages before the start page, and positive values represent pages after the start page. Note the total number of pages should not exceed Int.MAX_VALUE.