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

angularjs-datetime-picker-v2

v0.2.2

Published

Very Lightweight AngularJS DateTime Picker Without Using jQuery, bootStrap, or moment

Downloads

138

Readme

Simple Date / DateTime Picker For AngularJS

No JQuery, No Bootstrap, Just AngularJS (ver. 1.4+)

DEMO Imgur

To Get Started

For npm users,

$ npm i angularjs-datetime-picker-v0.2.0

  1. Include angularjs-datetime-picker.js and angularjs-datetime-picker.css

     <link rel="stylesheet" href="angularjs-datetime-picker.css" />
     <script src="angularjs-datetime-picker.js"></script>
  2. add it as a dependency

     var myApp = angular.module('myApp', ['angularjs-datetime-picker']);
  3. Use it

     <input datetime-picker ng-model="model" />

Attributes

  • date-format: optional, date format e.g. 'yyyy-MM-dd'
  • year: optional, year selected, e.g. 2015
  • month: optional, month selected, e.g. 5
  • day: optional, day selected, e.g. 31
  • hour: optional, hour selected, 23
  • minute: optional, minute selected, 59
  • date-only: optional, if set, timepicker will be hidden
  • future-only: optional, if set, Date which is older than today's Date will be not be selectable (Past time for same date is not handled)
  • start-date optional, if set, date which is on or after start-date will be selectable
  • end-date optional, if set, date which is on or before end-date will be selectable
  • start-date & end-date: optional, if set, date which is in between the range will only be selectable Note: future-only tag has more precedence than start-date & end-date tags

Examples

<input ng-model="date0" datetime-picker date-only />

<input ng-model="date1" datetime-picker date-only future-only />

<input ng-model="date6" datetime-picker start-date="11-20-2016" size="30" />

<input ng-model="date6" datetime-picker end-date="02-25-2017" size="30" />

<input ng-model="date6" datetime-picker start-date="11-20-2016" end-date="02-25-2017" size="30" />

<input ng-model="date2" datetime-picker date-format="yyyy-MM-dd" date-only />

<input ng-model="date3" datetime-picker date-format="yyyy-MM-dd HH:mm:ss" />

<input ng-model="date4" datetime-picker hour="23" minute='59'/>

<input ng-model="date5" datetime-picker date-format="yyyy-MM-dd HH:mm:ss" year="2014" month="12" day="31" />

This project has been forked from KineticSocial-angularjs-datetime-picker an inactive project. We are actively working on this project to enhance & fix issues.