Skip to content

Commit fc1116b

Browse files
committed
Support disabled. Closes #67.
1 parent ab34fff commit fc1116b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

README.md

+14
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,20 @@ Disables selection of days in the array, e.g. sundays.
9696

9797

9898

99+
### disabled
100+
101+
Default: `false`
102+
103+
Accepts: `boolean`
104+
105+
```handlebars
106+
{{bs-datetimepicker disabled=disabled}}
107+
```
108+
109+
Disables the input element.
110+
111+
112+
99113
#### disabledDates / enabledDates
100114

101115
Default: `false`

addon/templates/components/bs-datetimepicker.hbs

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<input
33
type="text"
44
class="form-control {{if isMobile "bs-disable"}}"
5+
disabled={{disabled}}
56
placeholder={{placeholder}}
67
readonly={{isMobile}}
78
onfocus={{action "focus"}}

0 commit comments

Comments
 (0)