This Ember addon serves as a date (range) input picker component, utilizing the Daterangepicker library. It was specifically developed under the commission of the Agency of Home Affairs (ABB) for integration into the BurgernabijeBesluitenDatabank application.
To install this addon, run the following command in your Ember project:
ember install au-date-range-picker
To use the date input picker component in your Ember project, simply include it in your template:
@action applyDatePicker(picker, start, end) {
this.dateRange = start + ' - ' + end;
}
@action hideDatePicker(picker, start, end) {
return this.start;
}
@action cancel(picker, start, end) {}
You can pass in the following arguments to customize the behavior of the component:
- start : The initial start date for the date range.
- end : The initial end date for the date range.
- actionName : The name of the action to be called when the date range is changed. This action will be called with 3 args: picker, start and end
To run the tests for this addon, run the following command:
ember test
Contributions to this addon are welcome. Please submit a pull request with your changes.
This addon is licensed under the MIT License. See the LICENSE file for details.