Calendar class

A calendar component.

Inheritance

Constructors

Calendar(Element element, {String? format, String? date, String? locale, int? firstDayOfWeek, DateTime? value, String? dataTargetSelector, DateTime? newDate(dynamic y, dynamic m, dynamic d)?, bool? displayWeekNumbers, String? dateGranularity})
Construct a calendar object, wired to element. *

Properties

$element → ElementQuery
The dquery object of element. Equivalent to $(element).
finalinherited
date String?
The text value of selected date.
getter/setter pair
dateGranularity String
getter/setter pair
displayWeekNumbers bool
getter/setter pair
element Element
The element which component wires to.
finalinherited
firstDayOfWeek int
no getter
format String
The date format of the calendar value.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
locale String
The date format locale of the calendar value.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value DateTime?
The date value of selected date.
getter/setter pair
view String
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
renderDay(Element elem, DateTime date) → void
renderSelectedDay(Element elem) → void
renderToDay(Element elem) → void
renderWeekNumber(Element elem) → void
reset() → void
Make calendar back to day view and selected date.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

todayUtc() DateTime
use() → void
Register to use Calendar component.
wire(Element element, [Calendar create()?]) Calendar
Retrieve the wired Calendar object from an element. If there is no wired

Constants

day → const String
month → const String
year → const String