Skip to content

ccidral/month-picker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
});

Releases

No releases published

Packages

No packages published