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

vuejs-date-picker

v1.0.1

Published

Datepicker component for Vue.js, Same as input(type=date) or input(type=datetime)

Downloads

4

Readme

vuejs-date-picker

Datepicker component for Vue.js, Same as input(type=date) or input(type=datetime)

Screenshot

Screenshot

Strong point

The datePicker can be automatically append to body element, So it have no staking level problem and you just write like this :

<input type="date" is="date" />

Getting Started

<input type="date" is="date" />

OR

<input type="datetime" is="datetime" />

Installation

npm install vuejs-date-picker

APIS

props

type

  • date : It have no input box of time, It accept String type
  • datetime : It have input box of time, It accept String type

value

If it is empty, Vuejs-date-picker will set a default date for it

utc

The default mode is not in utc, Set true make date in UTC mode

format-date

If type prop is date, It will Apply this format, The default format is 'YYYY-MM-DD'

format-datetime

If type prop is datetime, It will Apply this format, The default format is 'YYYY-MM-DD HH:mm'

target

It requires a reference to be positioned as the origin, It accepts HTMLElement and String types

name

Same as native name property

required

Same as native required property

focus

When this value is true, It will get the focus, otherwise, It will lose focus, It accept Boolean type

blur

When this value is true, It will lose the focus, otherwise, It will get focus, It accept Boolean type

events

will-open

No event data

It will be triggered when the datePicker will open

open

No event data

It will be triggered after the datePicker opens

change

event data :

  • date : The date of the current choose

It will be triggered after the input value is changed

will-close

event data :

  • date : The date of the current choose
  • isChanged : Means whether the date has been changed

It will be triggered when the datePicker will close

close

event data :

  • date : The date of the current choose
  • isChanged : Means whether the date has been changed

It will be triggered after the datePicker is closed

flip

No event data

It will be triggered when the datePicker is flipped

picker-will-destroy

event data :

  • date : The date of the current choose
  • isChanged : Means whether the date has been changed

It will be triggered when the datePicker will be destroyed

picker-destroyed

event data :

  • date : The date of the current choose
  • isChanged : Means whether the date has been changed

It will be triggered after the datePicker is destroyed

input-will-destroy

event data :

  • date : The date of the current choose
  • isChanged : Means whether the date has been changed

It will be triggered when the input will be destroyed

input-destroyed

No event data

It will be triggered after the input is destroyed

License

The MIT License