date_range class
A control that can display and specify a range of dates or times.
Methods¶
__init__() ¶
__init__(
dates=None,
with_time=False,
format=None,
editable=True,
label_start=None,
label_end=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_range
element.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
|
list[datetime]
|
The dates 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 first input. |
None
|
|
str
|
The label associated with the second input. |
None
|
|
Union[str, int]
|
The width of the date_range 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
|