MaterialDateGridBase class abstract
- Implemented types
- Annotations
-
- @Deprecated('No longer used due to poor performance')
Constructors
- MaterialDateGridBase(Clock clock, CalendarState initialState, ChangeDetectorRef changeDetector, DomService _domService, String mode)
Properties
- allowHighlightUpdates ↔ bool
-
Set this to false to temporarily suppress updates to the calendar's range
highlights. Defaults to true.
getter/setter pair
- canGrabRangeBoundaries → bool
-
no setter
- changeDetector → ChangeDetectorRef
-
final
- compact ↔ bool
-
Whether to enable compact calendar styles.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isScrollerCreated → bool
-
no setter
- maxDate → Date
-
no setter
- minDate → Date
-
no setter
- mode → CalendarSelectionMode
-
no setter
-
model
→ ObservableReference<
CalendarState> -
final
- paddingBottom ↔ int
-
getter/setter pair
- paddingTop ↔ int
-
getter/setter pair
- rowHeightPx → int
-
The height of each calendar row group, in pixels
no setter
- rowsToRender → int
-
How many calendar row groups to keep in the DOM at any time.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scroller ↔ ForcedScrollDirective?
-
getter/setter pair
- scrollTop ↔ int?
-
getter/setter pair
- startingWeekday ↔ int?
-
getter/setter pair
- startTop ↔ int
-
Where the top of the div lives, relative to the 'anchor' row. The idea is
that
scrollTop + _startTop
gives you the position in pixels relative to a known point in the data set (in this case,0
).getter/setter pair - state ↔ CalendarState?
-
An object describing the entire state of the calendar -- what's selected
on the calendar, and whether or not the selection is currently "active".
getter/setter pair
-
stateChange
→ Stream<
CalendarState?> -
Fired when the calendar state changes -- e.g. when the user starts
dragging the selected date range.
no setter
- today ↔ Date
-
getter/setter pair
Methods
-
attachScroller(
ForcedScrollDirective scroller) → void -
override
-
canSelectDate(
Date date) → bool -
createRender(
) → void -
forceScrollTop(
int? scrollTop) → void - Sets scrollTop and forces the change on the scroller div.
-
initScroll(
) → void -
moveView(
int scrollTop, int diffPx, int maxPaddingTop, int maxPaddingBottom) → int - Moves the 'view' by adjusting the heights of the top and bottom padding divs. Returns the value that scrollTop should be set to.
-
ngOnDestroy(
) → void - Executed before the directive is removed from the DOM and destroyed.
-
ngOnInit(
) → void - Executed after the first change detection run for a directive.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onCalendarChange(
CalendarState? state) → void -
onClick(
Date date) → void -
onMouseDown(
Date date) → void -
onMouseLeave(
Date date) → void -
onMouseMove(
Date date) → void -
rowFromPos(
dynamic heightPx) → int? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- MAX_CALENDAR_SIZE_PX → int
-
The maximum height to give to the entire calendar scroller. If adding
padding due to scrolling would cause the calendar to get taller than this,
we'll trim some off the top or bottom to fit into this limit.
final
- MIN_BUFFER_SIZE_PX → int
-
The minimum amount of padding to keep around the content, to accommodate
fast scrolling. (This makes sure that there is always something for larger
scroll events to scroll into.)
final