Fork me on GitHub

Datepicker

<button class="btn btn-primary"><i class="icon-calendar icon-white"></i> Select the date</button>
YUI().use(
  'aui-datepicker',
  function(Y) {
    new Y.DatePicker(
      {
        trigger: 'button',
        popover: {
          zIndex: 1
        },
        on: {
          selectionChange: function(event) {
            console.log(event.newSelection)
          }
        }
      }
    );
  }
);