This is small angular directive for selecting both date ranges from one handy calendar. Useful for using in different filters.
bower install angular-red-datepicker.
- Add dependencies to your code.
- Add a dependency to the
redDatepickerModulemodule in your application.
- Add attribute directives to your html:
localeis optional and set language and rules for displaying calendar. By defaults is English. The list of languages you can look in the MomentJS.
list-show- showing the list of defalts date range. By defaults is false.
output- set the variable for date output.
today-btn- show today button.
number-of-days- set quantity of days from start selection to today on init.