pysepal.sepalwidgets.inputs.DatePicker#
- class pysepal.sepalwidgets.inputs.DatePicker(*args, **kwargs)[source]#
Added in version 2.13.0: Empty v_model will be treated as empty string:
v_model=''.Custom input widget to provide a reusable DatePicker.
It allows to choose date as a string in the following format YYYY-MM-DD.
- Parameters:
label (str) – the label of the datepicker field
layout_kwargs (dict | None) – any parameter for the wrapper v.Layout
kwargs – any parameter from a v.DatePicker object.
Attributes
check_dateclose_menudate_textthe text field of the datepicker widget
disabledisabledthe disabled status of the Datepicker object
menuthe menu widget to display the datepicker
Methods
Custom input widget to provide a reusable DatePicker.
Check if the date is provided using the date format required for the widget.
Update the date to the current day.
- DatePicker.__init__(label='Date', layout_kwargs=None, **kwargs)[source]#
Custom input widget to provide a reusable DatePicker.
It allows to choose date as a string in the following format YYYY-MM-DD.
- Parameters:
label (str) – the label of the datepicker field
layout_kwargs (dict | None) – any parameter for the wrapper v.Layout
kwargs – any parameter from a v.DatePicker object.
- Return type:
None