DateInput

An input field that let the user enter a date, either with a text field or a date picker interface


Provides a wrapper for Phoenix.HTML.Form's date_input/3 function.

All options passed via opts will be sent to date_input/3, value and class can be set directly and will override anything in opts.


      
<DateInput value="2020-06-04" />
    

# Public API

Name Description Type Values Default
id The id of the corresponding input field.

:string
opts Options list.

:keyword []
class Class or classes to apply to the input.

:css_class
value Value to pre-populated the input.

:string
name The name of the corresponding input field.

:string
field An identifier for the input.

:any
form An identifier for the form.

:form
values List values that will be sent as part of the payload triggered by an event.

:keyword []