|
@@ -16,6 +16,12 @@ class Date(ValueElement):
|
|
|
This element is based on Quasar's `QDate <https://quasar.dev/vue-components/date>`_ component.
|
|
|
The date is a string in the format defined by the `mask` parameter.
|
|
|
|
|
|
+ You can also use the `range` or `multiple` props to select a range of dates or multiple dates::
|
|
|
+
|
|
|
+ ui.date({'from': '2023-01-01', 'to': '2023-01-05'}).props('range')
|
|
|
+ ui.date(['2023-01-01', '2023-01-02', '2023-01-03']).props('multiple')
|
|
|
+ ui.date([{'from': '2023-01-01', 'to': '2023-01-05'}, '2023-01-07']).props('multiple range')
|
|
|
+
|
|
|
:param value: the initial date
|
|
|
:param mask: the format of the date string (default: 'YYYY-MM-DD')
|
|
|
:param on_change: callback to execute when changing the date
|