ender-timepicker

Ender Time picker.

npm install ender-timepicker
8 downloads in the last month

timePicker

An ender time picker based on https://github.com/perifer/timePicker

Dependency: The Jeesh

If you're already using ender, you can add it to your existing instance :

$ ender add calender

Simple usage:

<link rel="stylesheet" type="text/css" href="timepicker.css">
<script src="http://ender-js.s3.amazonaws.com/jeesh.min.js"></script>
<script src="timepicker.js"></script>
<script>
  $("#time1").timepicker();
</script>

Add options:

02.00 AM - 03.30 PM, 15 minutes steps:

$("#time").timePicker({
  startTime: new Date(0, 0, 0, 2, 00, 0),
  endTime: new Date(0, 0, 0, 15, 30, 0),
  show24Hours: false,
  step: 15});

startTime and endTime can also be string :

$("#time2").timePicker({
  startTime: "2:00",
  endTime: "15:30",
  separator: ':', // needs to provide correct seperator
  show24Hours: false,
  step: 15});
npm loves you