New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vue-date-select

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-date-select

Vue component for date selection

  • 0.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

vue-dateselect

Vue Dateselect Demo

npm install vue-date-select

Usage

<template>
    ...
    <DateSelect></DateSelect>
    ...
</template>
<script>
import DateSelect from 'vue-date-select'
export default {
    // ...
    components: {
        DateSelect
    }
}
</script>
or in main.js
// ... 
import { DateSelect } from "vue-date-select";
Vue.component('DateSelect', DateSelect);
// ...

:Props

v-model - The component will give back an Object containing "day","month","year" properties
:dateFormat - String specifying the format of the displayed date and the order of the dropdown lists in the date-select.
Example:
:dateFormat="dd.mm.yyyy"
:dateFormat="mm-dd-yyyy" 
...
Any combination of "mm", "dd", "yyyy" separated by any of the 
following characters ".","-"," ".
Default value:
"dd.mm.yyyy"
:yearRange - Array of two elements where the first element is the beggining and the second element is the end of the year range.
Example:
:yearRange="[1900, 2019]"
Default value:
[1900, new Date().getFullYear()]
:startDay, :startMonth, :startYear - Number indicating at which element the drodown lists should be scrolled to at the beggining
Example:
:startDay="6"
:startMonth="6"
:startYear="2000"
Default value:
:startDay="15"
:startMonth="6"
:startYear="1965"
:locale (experimental) - Language for the months dropdown, and hopefully in future masking of the label with corresponding letters. Currently supported -> ["en_EN"," de_DE"].
Default value: "en_EN".
:dragscroll - Boolean indicating whether or not the dragscroll directive should be enabled on the dropdown lists.
Default value: true

@Events
@complete(dateObject) - Event fired when the date-select has a completed value.

Keywords

FAQs

Package last updated on 01 Oct 2019

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