npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular-material-datetimepicker

v1.4.0

Published

A datetime picker for AngularJS Material

Downloads

466

Readme

Angular Material DateTimePicker

Originally designed for Bootstrap Material, this has been modified to work with Angular Material. This is an Android style date-time picker for Angular Material. Some added features include:

  • Double click to select date or time
  • Swipe left to go to next month or Swipe right to go to previous month.

Updates

** I have kept this section of the document as an acknowledgement for all the work done on the original Bootstrap Material plugin **

| Date | Author | Description | | ----------------- | ----------------- | ----------- | | 2015-11-12 | logbon72 | Adapted plugin for Angular Material | | 2015-10-19 | benletchford | Fixed not being able to tab into input | | 2015-10-19 | drblue | Fixed erroneous package.json-file | | 2015-10-19 | Perdona | Fix auto resize when month has 6 weeks | | 2015-07-01 | T00rk | Redesigned element without using modal | | 2015-06-16 | T00rk | Use Timepicker alone / Display short time (12 hours) | | 2015-06-13 | T00rk | Fixed issue with HTML value tag | | 2015-05-25 | T00rk | Changed repo name to bootstrap-material-datetimepicker * | | 2015-05-12 | T00rk | Added parameters for button text | | 2015-05-05 | Sovanna | FIX undefined _minDate in isBeforeMaxDate func | | 2015-04-10 | T00rk | Little change in clock design | | 2015-04-10 | Peterzen | Added bower and requirejs support | | 2015-04-08 | T00rk | Fixed problem on locale switch | | 2015-03-04 | T00rk | Added Time picker | (*) File names have been changed

bootstrap-material-datepicker.js => bootstrap-material-datetimepicker.js

bootstrap-material-datepicker.css => bootstrap-material-datetimepicker.css

Dependencies

Depends on the following library:

  • Angular Material & it's dependencies
  • Angular Touch
  • MomentJS

Installing via Bower

bower install angular-material-datetimepicker

Live Example

Click here to see live examples.

Usage

Add the plugin module as a dependency to your AngularJS module:

    angular.module('myAwesomeModule', [
      //other dependencies ignored
      'ngMaterialDatePicker'
    ]);

This plugin exposes a directive which should be used as an attribute for an input element. The directive is mdc-datetime-picker. An example of this is given below:

    <md-input-container flex-gt-md="30">
        <label>Timepicker Only</label>
        <input mdc-datetime-picker date="false" time="true" type="text" id="time" short-time="true"
               placeholder="Time"
               min-date="minDate"
               format="hh:mm a"
               ng-model="time">
    </md-input-container>

Directive Attributes

The directive accepts several attributes which are described below:

| Name | Type | Description | | ----------------- | ----------------------------- | --------------------------------------------- | | ng-model | (String|Date|Moment) | Initial Date or model to assign the date to| | format | String | MomentJS Format,defaults to HH:mm for time picker only, YYYY-MM-DD for date picker only and YYYY-MM-DD HH:mm for both timepicker and date picker | | short-time | Boolean | true => Display 12 hours AM|PM | | min-date | (String|Date|Moment) | Minimum selectable date | | max-date | (String|Date|Moment) | Maximum selectable date | | date | Boolean | true => Has Datepicker (default: true) | | time | Boolean | true => Has Timepicker (default: true) | | cancel-text | String | Text for the cancel button (default: Cancel) | | ok-text | String | Text for the OK button (default: OK) |