DatePicker
Configuration of the DatePicker
* onChange is the message for when the selected value in the multi-select is changed. (Required)
* toMsg is the Msg for updating internal State of the DatePicker element. (Required)
* nameOfDays is the configuration for name of days in a week. (Optional)
* firstDayOfWeek is the first day of the week. (Optional)
* formatter is the Date to String formatter for the input value. (Optional)
* titleFormatter is the Date to String formatter for the dialog's title. (Optional)
* fullDateFormatter is the Date to String formatter for the dialog's footer. (Optional)
Default configuration.
Requires onChange and toMsg msgs.
* nameOfDays see NameOfDays for the default values.
* firstDayOfWeek Default: Sunday. (Optional)
* formatter Default: "%m/%d/%Y" (Optional)
* titleFormatter Default: "%B %Y" (Optional)
* fullDateFormatter Default: "%A, %B %d, %Y" (Optional)
Configuration for name of days in a week.
This will be displayed as the calendar's header. Default: * sunday = "Su" * monday = "Mo" * tuesday = "Tu" * wednesday = "We" * thursday = "Th" * friday = "Fr" * saturday = "Sa"
Initial state of the DatePicker
Initial state of the DatePicker with today Date
Initial Cmd to set the initial month to be displayed in the datepicker to the current month.
Opaque type to keep track of the DatePicker internal state
DatePicker view function.
Example: