Coder Social home page Coder Social logo

angular-timepicker's Introduction

Angular Timepicker Directive

A simple dropdown style timepicker directive.

Prerequisites

  1. Angular 1.2.0+
  2. Angular UI Bootstrap 0.3.0+
  3. Angular DateParser 1.0.0+

Usage

Include the timepicker directive file, and attach it to an input field.

<input type="text" dn-timepicker="h:mm a" min-time="00:00" max-time="23:59" step="15" ng-model="timepicker.model" />

Options

dn-timepicker

The format to use when displaying the time in the input box and the dropdown list.

Default value: 'h:mm a'

Added: 1.0.5

ng-model (Date|string)

The model that the timepicker is bound to. If no model is given, it will create a new one. The timepicker also accepts a time string, provided it follows the defined format.

Default value: new Date()

Added: 1.0.0

time-format (string) [DEPRECATED]

The format to use when displaying the time in the input box and the dropdown list.

Default value: 'h:mm a'

Added: 1.0.0

This attribute is now deprecated. Please specify the time format as value for the directive attribute.

min-time (string)

The lower limit for the list of selectable times. The value must match the format used.

Default value: '00:00'

Added: 1.0.0

max-time (string)

The upper limit for the list of selectable time. The value must match the format used.

Default value: '23:59'

Added: 1.0.0

step (string)

The amount of time between each item in the list of selectable time. Values are in minutes. Add 'h' after the integer to use hours, i.e. '1h' will be converted to 60 minutes.

Default value: '15'

Added: 1.0.0

angular-timepicker's People

Contributors

dnasir avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.