Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hsy-vue-datepicker

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hsy-vue-datepicker

vue datepicker component

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

vue-datepicker

This is yet another vue datepicker component.

Install

Use npm to download code:

npm install hsy-vue-datepicker -S

then import it into your project, add below code into your main.js:

import Datepicker from 'hsy-vue-datepicker'

Vue.use(Datepicker)

Usage

It supports single date mode, you just need to bind your date with v-model:

<template>
<div class="demo">
  <datepicker v-model="value"></datepicker>
</div>
</template>

<script>
export default {
  data() {
    return {
      value: ['2017-02-01']
    }
  }
}
</script>

also, there is a date-range mode, you just need to specify the mode with prop mode:

<template>
<div class="demo">
  <datepicker v-model="value" mode="daterange"></datepicker>
</div>
</template>

<script>
export default {
  data() {
    return {
      value: ['2017-02-01', '2017-02-05']
    }
  }
}
</script>

it contains a hot-realod example for your preview or dev, run it follow:

$ cd your-clone-dir
$ npm install
$ npm run dev

Props

PropDescriptionTypeAccepted ValuesDefault
valuedates to be manipulatedString/Moment/Date/Array of former--moment()
modemode of pickerStringdate/daterangedate
cssClasscss class to be appended to component $elString----
placeholderplaceholderString----
cbDate0Errorcallback for error input from user of begin date----
cbDate1Errorcallback for error input from user of end date----
cbCancelClickedcallback for cancel button clicked------

Demo

Demo

Screenshot

FAQs

Package last updated on 28 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc