🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

vue-date-dropdown

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-date-dropdown

A Vue date dropdown component

1.0.5
latest
Source
npm
Version published
Weekly downloads
459
24.05%
Maintainers
1
Weekly downloads
 
Created
Source

Vue Date Dropdown

A Vue date dropdown component

npm version

Example

Contents

Installing

npm install vue-date-dropdown --save

yarn add vue-date-dropdown
import DateDropdown from 'vue-date-dropdown'

export default {
	...
	components: {
		DateDropdown
	},
	data () {
		return {
			selectedDate: '',
			...
		}
	}
	...
}

Or if you are using CDN version

<script src="vue-date-dropdown.min.js"></script>

<script>
Vue.use(DateDropdown)

new Vue({
	...
	data() {
		return {
			selectedDate: '',
			...
		}
	}
	...
});
<script>

Examples

See the demo in the example folder.

Setting a default date

<date-dropdown default="1995-01-10" v-model="selectedDate" />

Setting a min date

<date-dropdown min="1960" v-model="selectedDate" />

Setting a max date

<date-dropdown max="2018" v-model="selectedDate" />

Setting a range of dates

<date-dropdown min="1960" max="2017" v-model="selectedDate" />

Setting Russian names of months

<date-dropdown
	v-model="selectedDate" 
	months-names="Январь, Февраль, Март, Апрель, Май, Июнь, Июль, Август, Сентябрь, Октябрь, Ноябрь, Декабрь">
<date-dropdown>

API

Props

NameTypeDescription
defaultStringSet default date.
minStringLimits the year to a minimum specified value.
maxStringLimits the year to a maximum specified value.
months-namesStringThe alternative names of month.

Keywords

vue

FAQs

Package last updated on 23 Feb 2018

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