Skip to content

Commit

Permalink
Added allowInputToggle option (#51)
Browse files Browse the repository at this point in the history
Added allowInputToggle option
  • Loading branch information
jevanlingen authored and btecu committed Feb 9, 2018
1 parent 2cbb07b commit ee53e12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,18 @@ Fired when the date is changed.

### Available options

#### allowInputToggle

Default: `false`

Accepts: `boolean`

```handlebars
{{bs-datetimepicker date=myDate allowInputToggle=true}}
```

If `true`, the picker will show on textbox focus and icon click when used in a button group.

#### calendarWeeks

Default: `false`
Expand Down
1 change: 1 addition & 0 deletions addon/components/bs-datetimepicker.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export default Component.extend(DynamicAttributeBindings, {
};

this.$().datetimepicker({
allowInputToggle: this.getWithDefault('allowInputToggle', defaults.allowInputToggle),
calendarWeeks: this.getWithDefault('calendarWeeks', defaults.calendarWeeks),
date: this.getWithDefault('date', null),
daysOfWeekDisabled: this.getWithDefault('daysOfWeekDisabled', defaults.daysOfWeekDisabled),
Expand Down

0 comments on commit ee53e12

Please sign in to comment.