Skip to content

GetmeUK/manhattan-js-time-picker

Repository files navigation

Manhattan Time Picker

Time parsing and picking for form fields.

npm version Build Status Coverage Status dependencies status

Installation

npm install manhattan-date-picker --save-dev

Usage

<label>
    Time
    <input
        name="text"
        value="10:30"
        data-mh-time-picker
        >
</label>
import * as $ from 'manhattan-essentials'
import {timePicker} from 'manhattan-time-picker'

const picker = new timePicker.DatePicker($.one('[data-mh-time-picker]'))
picker.init()