date class
A control that can display and specify a formatted date, with or without time.
Methods¶
__init__() ¶
__init__(
date=None,
with_time=False,
format=None,
editable=True,
label=None,
min=None,
max=None,
width=None,
on_change=None,
propagate=None, # App config
active=True,
id=None,
properties=None,
class_name=None,
hover_text=None,
) -> None
Create a new date
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
datetime
|
The date that this control represents and can modify. |
None
|
|
bool
|
Whether or not to show the time part of the date. |
False
|
|
str
|
The format to apply to the value. See below. |
None
|
|
bool
|
Shows the date as a formatted string if not editable. |
True
|
|
str
|
The label associated with the input. |
None
|
|
datetime
|
The minimum date to accept for this input. |
None
|
|
datetime
|
The maximum date to accept for this input. |
None
|
|
Union[str, int]
|
The width of the date element. |
None
|
|
Union[str, Callable]
|
A function or the name of a function that is triggered when the value changes.
|
None
|
|
bool
|
Determines whether the control's value is automatically reflected in the bound application variable. |
App config
|
|
bool
|
Indicates if this element is active. |
True
|
|
str
|
The identifier assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
A dictionary of additional properties that can be set to the element. |
None
|
|
str
|
A space-separated list of CSS class names to be applied to the generated HTML element. |
None
|
|
str
|
The text that is displayed when the user hovers over the element. |
None
|