Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 460 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 460 Bytes

Month Picker

A simple yet good looking JavaScript month picker. It doesn't have any dependencies (so far).

How to use it

var monthPicker = new MonthPicker();

document.body.appendChild(monthPicker.el);

monthPicker.model().on('change', function() {
  var year = monthPicker.model().get('year');
  var month = monthPicker.model().get('month');
  
  console.log('year:', year);
  console.log('month:', month);
});