Sometimes you may need to disable certain dates from being selected. Let's suppose that you want to let the user select only week days:
Forbid manual entering to input element. The only way to choose date is interacting with dialog:
+All the following options can be applied to the md-datepicker component:
@@ -103,6 +110,12 @@ type: 'Number', description: 'Debounces the conversion of plaintext into a date object. Set to a longer time if your users type slowly, or shorter if your users type really fast.', defaults: 1000 + }, + { + name: 'md-disabled-input', + type: 'Boolean', + description: 'Forbid manual entering to input element. The only way to choose date is interacting with dialog.', + defaults: 'false' } ] }, @@ -123,4 +136,4 @@ } }) } - + \ No newline at end of file diff --git a/docs/app/pages/Components/Datepicker/examples/DisabledInputDatepicker.vue b/docs/app/pages/Components/Datepicker/examples/DisabledInputDatepicker.vue new file mode 100644 index 000000000..7ae0d95e1 --- /dev/null +++ b/docs/app/pages/Components/Datepicker/examples/DisabledInputDatepicker.vue @@ -0,0 +1,14 @@ + +