Skip to content

Commit ee53e12

Browse files
jevanlingenbtecu
authored andcommitted
Added allowInputToggle option (#51)
Added allowInputToggle option
1 parent 2cbb07b commit ee53e12

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

README.md

+12
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ Fired when the date is changed.
4343

4444
### Available options
4545

46+
#### allowInputToggle
47+
48+
Default: `false`
49+
50+
Accepts: `boolean`
51+
52+
```handlebars
53+
{{bs-datetimepicker date=myDate allowInputToggle=true}}
54+
```
55+
56+
If `true`, the picker will show on textbox focus and icon click when used in a button group.
57+
4658
#### calendarWeeks
4759

4860
Default: `false`

addon/components/bs-datetimepicker.js

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ export default Component.extend(DynamicAttributeBindings, {
4242
};
4343

4444
this.$().datetimepicker({
45+
allowInputToggle: this.getWithDefault('allowInputToggle', defaults.allowInputToggle),
4546
calendarWeeks: this.getWithDefault('calendarWeeks', defaults.calendarWeeks),
4647
date: this.getWithDefault('date', null),
4748
daysOfWeekDisabled: this.getWithDefault('daysOfWeekDisabled', defaults.daysOfWeekDisabled),

0 commit comments

Comments
 (0)