diff --git a/docs-src/DocsSidebar.vue b/docs-src/DocsSidebar.vue index 005eb4b8..f64b719f 100644 --- a/docs-src/DocsSidebar.vue +++ b/docs-src/DocsSidebar.vue @@ -75,7 +75,7 @@ import DocsBrand from "./DocsBrand.vue"; import UiIcon from "@/UiIcon.vue"; import UiSelect from "@/UiSelect.vue"; -import version from "../build/version.mjs"; +import selectedVersion from "../build/version.mjs"; const versions = [ { label: "0.8.x", value: "0.8.9" }, @@ -87,8 +87,6 @@ const versions = [ { label: "next", value: "next" }, ]; -const selectedVersion = versions.find((v) => v.value === version) ?? versions[versions.length - 2]; - export default { components: { DocsBrand, diff --git a/docs-src/pages/UiDatepicker.vue b/docs-src/pages/UiDatepicker.vue index e6cac6b6..be58d62e 100644 --- a/docs-src/pages/UiDatepicker.vue +++ b/docs-src/pages/UiDatepicker.vue @@ -208,6 +208,14 @@ disabled placeholder="Select a date" >A Special Day + +
Whether or not the datepicker is disabled. Set to true
to disable the datepicker.
false
Whether or not the datepicker should include a value clear button.
+Set to true
to show a clear button. Clicking it will set the value to an empty one depending on the datepicker type.
The model the selected value or values sync to. Can be set initially for default value/values.
@@ -236,14 +246,16 @@[]
An array of options to show to the user.
+An array or object of options to show to the user.
Can be a plain array, e.g. ['Red', 'Blue', 'Green']
as well as an array of objects.
For a plain array, the option is shown to the user and it is used for filtering.
-For an array of objects, the label
is shown to the user and is used for filtering, and the modelValue
is submitted to the server. If provided, class
, will be applied to the option element's class
attribute. You can redefine these keys to fit your data using the keys
prop.
For an array of objects, the label
is shown to the user and is used for filtering, and the value
is submitted to the server. If provided, class
, will be applied to the option element's class
attribute. You can redefine these keys to fit your data using the keys
prop.
For an object, the value
is shown to the user and is used for filtering, and the key
is submitted to the server. The keys
prop is ignored when using an Object.
The entire option is written to the model when the user makes a selection.
Whether or not the select is disabled. Set to true
to disable the select.
false
Whether or not the select should include a value clear button.
+Set to true
to show a clear button. Clicking it will set the value to null
.