Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/oui-calendar/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ Use `mode` to set a different selection mode for the calendar
| `min-date` | object | <? | yes | See [Supplying Dates](https://flatpickr.js.org/examples/#supplying-dates-for-flatpickr) | n/a | specifies the minimum/earliest date (inclusively) allowed for selection
| `disable-date` | array | <? | yes | See [Supplying Dates](https://flatpickr.js.org/examples/#supplying-dates-for-flatpickr) | n/a | make certain dates unavailable for selection
| `enable-date` | array | <? | yes | See [Supplying Dates](https://flatpickr.js.org/examples/#supplying-dates-for-flatpickr) | n/a | make certain dates only available for selection
| `enable-time` | boolean | <? | yes | See [Options](https://flatpickr.js.org/options/) | n/a | enables time picker
| `week-numbers` | boolean | <? | yes | `true`, `false` | `false` | week numbers flag
| `disabled` | boolean | <? | no | `true`, `false` | `false` | disabled flag
| `required` | boolean | <? | no | `true`, `false` | `false` | required flag
Expand Down
2 changes: 2 additions & 0 deletions packages/oui-calendar/src/calendar.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ export default {
disableDate: "<?",
enableDate: "<?",

enableTime: "<?",

disabled: "<?",
required: "<?",
weekNumbers: "<?",
Expand Down
1 change: 1 addition & 0 deletions packages/oui-calendar/src/calendar.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ export default class {
this.setOptionsProperty("minDate", this.minDate);
this.setOptionsProperty("mode", this.mode);
this.setOptionsProperty("weekNumbers", this.weekNumbers);
this.setOptionsProperty("enableTime", this.enableTime);

// Set formatting options
this.setOptionsProperty("dateFormat", this.format);
Expand Down