Socket
Socket
Sign inDemoInstall

vue-dropdown-datepicker

Package Overview
Dependencies
0
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-dropdown-datepicker

A simple and customizable dropdown datepicker vue component


Version published
Weekly downloads
694
increased by14.9%
Maintainers
1
Install size
124 kB
Created
Weekly downloads
 

Readme

Source

Vue Dropdown Datepicker

A simple and customizable dropdown datepicker vue component.

Check Examples

Installation

vuejs is required to use this component

Package manager

Using npm
npm i vue-dropdown-datepicker
Using yarn
yarn add vue-dropdown-datepicker
Using bower
bower install vue-dropdown-datepicker
Using CDN
<script src="https://cdn.jsdelivr.net/npm/vue-dropdown-datepicker@1.3.1/dist/dropdown-datepicker.min.js"></script>

OR

<script src="https://unpkg.com/vue-dropdown-datepicker@1.3.1/dist/dropdown-datepicker.min.js"></script>

Usage

ES6

import DropdownDatepicker from '../src/dropdown-datepicker.vue';
new Vue({
    el: '#app',
    components: {
        DropdownDatepicker
    }
});

Browser

new Vue({
    el: '#app',
    components: {
        DropdownDatepicker
    }
});

Options

OptionTypeDefultComment
defaultDatestringnull
defaultDateFormatstring'yyyy-mm-dd'
displayFormatstring'dmy'
submitFormatstring'yyyy-mm-dd'
submitIdstringnull
minAgeintnull
maxAgeintnull
minYearintnull
maxYearintnull
minDatestringnullyyyy-mm-dd
maxDatestringnullyyyy-mm-dd
allowPastbooleantrue
allowFuturebooleantrue
wrapperClassstring'date-dropdowns'
dropdownClassstringnull
daySuffixesbooleantrue
monthSuffixesbooleantrue
monthFormatstring'long'
requiredbooleanfalse
dayLabelstring'Day
monthLabelstring'Month'
yearLabelstring'Year'
sortYearstring'desc'
monthLongValuesarray['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']
monthShortValuesarray['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
initialDayMonthYearValuesarray['Day', 'Month', 'Year']
daySuffixValuesarray['st', 'nd', 'rd', 'th']

Events

onDayChange

Call on any change of day dropdown

<dropdown-datepicker v-bind:on-day-change="yourFunctionName"><dropdown-datepicker>

onMonthChange

Call on any change of month dropdown

<dropdown-datepicker v-bind:on-month-change="yourFunctionName"><dropdown-datepicker>

onYearChange

Call on any change of year dropdown

<dropdown-datepicker v-bind:on-year-change="yourFunctionName"><dropdown-datepicker>

Contributing

Contributing Feel free to submit any fixes or propose any additional functionality via pull request or issue, making sure any changes take place in /src.

Minification and Validation Both are automated via npm command. Run npm install to install the required dependencies, then run npm run build from the root of the project to handle the tasks.

License

ISC

Keywords

FAQs

Last updated on 21 Jan 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc