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

ng2-datetimepicker

v1.0.0

Published

Date, DateTime & Time Picker components that uses native HTML5 components on mobile, add formatStr

Downloads

7

Readme

ngx-datetime-picker

Date time picker that falls back to native HTML5 components on mobile

image

  • No jQuery or other external dependencies.
  • 3 seperate components for Date Time, Date, and Time picker
  • When being used on a mobile or touch devices it falls back to html5 inputs of date, datetime-local, and time

npm npm

Live Demo

Usage

import { DateTimePickerModule} from 'ngx-datetime-picker';

@NgModule({
  imports: [
    DateTimePickerModule
  ],

<ngx-datetime-picker [(selectedDateTime)]="dateTimeExample"></ngx-datetime-picker>

<ngx-date-picker [(selectedDate)]="dateExample"></ngx-date-picker>

<ngx-time-picker [(selectedTime)]="timeExample"></ngx-time-picker>

CSS

Copy the ngx-datetime-picker css to your project.

If you are using angular-cli the css can be added to your angular-cli.json

"styles": [
  "../node_modules/ngx-datetime-picker/ngx-datetimepicker/src/assets/ngx-datetime-picker.css"
]

Sass files avaliable for quick customization. Override the defaults, compile, and include them in your project.

Development:

Work flow

  • Clone repository to your machine.

  • Run npm run setup to prepare the project

  • Live edit mode with npm run serve.

  • Run tests with watcher with npm run test.

  • Run tests without a watcher with npm run test.once.

  • Prepare for distrabution with npm run dist (note you man need to also run tsc index.ts if you have updated the exported values.)

  • Test a demo project using the exported ngModule with npm run demo

  • Sass files are compiled locally using Koala.

  • Set Koala to watch date.component.scss and compile it to ngx-datetimepicker > src > assets as ngx-datetime-picker.css.

  • Optionally you can use https://github.com/angular-buch/angular-cli-ghpages to publish the demo install to github pages. by first running npm run demo, then by going into your demo directory with cd demo and from there you can copy and past the two commands to publish to github pages.

    ng build --prod --aot --base-href "https://renovosolutions.github.io/ngx-datetimepicker/"

    then

    ngh --repo=https://github.com/renovosolutions/ngx-datetimepicker.git

    note this will publish to the gh-pages branch and you wil need to authenicate again

Requirements

  • angular-cli 1.0.0-beta.28.3 or higher
  • node 6.9.0 or higher

Contributors

| | :---: |:---: |:---: | Josh Sommer |Brent Miller |Steven Farage