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 is updated.
|
None
|
|
bool
|
Allows the control's main value to be automatically propagated. |
App config
|
|
bool
|
Indicates if this component is active. |
True
|
|
str
|
The identifier that is assigned to the rendered HTML component. |
None
|
|
dict[str, Any]
|
Bound to a dictionary that contains additional properties for this element. |
None
|
|
str
|
The list of CSS class names that are associated with the generated HTML Element. |
None
|
|
str
|
The information that is displayed when the user hovers over this element. |
None
|