1.1.2 • Published 6 years ago

vue-dateify v1.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Vue Dateify

A VueJS component for picking the date and time.

npm version

Examples

You can view some examples online, or get it set up locally: npm install && npm run build

Install

$ npm install vue-dateify --save
import VueDateify from 'vue-dateify';

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

Usage

<vue-dateify></vue-dateify>

value or v-model prop must be a Date object

<script>
    let something = new Date()
</script>

<vue-dateify v-model="something"></vue-dateify>

Available props

PropTypeDefaultDescription
valueDateDate object representing the value of the date and/or time picker
date-addonString''HTML to be disabled in an input group addon
date-labelString''Label to be displayed above input element
date-formatString'MMMM Do, YYYY h:mm a'The display format that is shown in the input field
date-auto-closeBooleantrueSet to false to require a "save" button in order to save changes to the model
date-minDatenullMinimum selectable date
date-maxDatenullMaximum selectable date
highlighted-datesArray[]Show dates as highlighted on the calendar with details view of the dates
time-addonString''HTML to be disabled in an input group addon
time-labelString''Label to be displayed above input element
time-formatString'h:mm a'The display format that is shown in the input field
time-auto-closeBooleantrueSet to false to require a "save" button in order to save changes to the model
internationalBooleanfalseShow time in 24-hour mode
animateBooleantrueApply css animation classes to the pickers
animate-in-classString'animated bounceInDown'Customize the animation "enter/in" classes
animate-out-classString'animated fadeOutUp'Customize the animation "exit/out" classes
weeksBooleanfalseShow week numbers on the calendar for the date picker
viewString'days'Control the deepest level on the calendar (options are days, months, years)
disabled-daysArray[]Disable certain days of the week
disabled-monthsArray[]Disable certain months of the year
disabled-yearsArray[]Disable certain years
disabled-datesArray[]Disable certain calendar dates
disabled-hoursArray[]Disable certain hours of the clock
disabled-minutesArray[]Disable certain minutes of the clock
today-buttonBooleanfalseShow a button for jumping to "today" on the day view of the calendar
close-buttonBooleanfalseShow a button for closing the date and/or time picker
separateBooleanfalseSet to true to show the date and time pickers as separate inputs

Events

NameParameterDescription
onChangeDateEvent emitted from vue-dateify component which returns the updated model as a Date object

Date Formatting

Refer to moment.js for date-format and time-format.

Issues

File any issues here https://github.com/klye-g/vue-dateify/issues

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago