Lightweight Angular.js monthpicker directive based on the work of RemiAWE/ng-flat-datepicker
- Run the following commands inside the project directory
-
npm install
-
gulp compile
- Open demo/index.html in the browser
- Month-only Picker from a range of years
- Multiple and Ranged selection of months in one dialog
- Angularjs >=1.2
- Moment.js
picker-config
: Object - The monthpicker's config object.picker-id
: String - Important if it is required to start scrolling from current year in the list when there are multiple pickers inside the same parent
<input type="text" ng-model="months_1" ng-flat-monthpicker picker-config="pickerConfig" picker-id="1">
monthFormat
: String - The Moment.js format of the month in theng-model
. Default format is'MMM YYYY'
.startYear
: int - Start year of the list. Default value is2000
.futureYear
: int - End year of the list is calculated with this value. e.g. endYear = currentYear + futureYear. Default value is0
.isRanged
: Boolean - if true then range selection will be set from the start. Also can be changed in runtime.