0.6.0 • Published 4 years ago

vue-material-date-time-picker v0.6.0

Weekly downloads
45
License
MIT
Repository
github
Last release
4 years ago

vue-material-date-time-picker

A date and time picker Vue component. Compatible with Vue 2.x. Performed in material design.

NB. Vue 1.x is not supported.

Demo

To view a demo online: https://codesandbox.io/s/vue-materialdatetimepicker-demo-gs52h

To view demo examples locally clone the repo and run npm install && npm run serve or yarn && yarn serve

Install

npm install vue-material-date-time-picker --save

or

yarn add vue-material-date-time-picker --save

To use component in your project import it as it is shown bellow

<script>
import VueMaterialDateTimePicker from 'vue-material-date-time-picker'

export default {
  // ...
  components: {
    VueMaterialDateTimePicker
  },
  // ...
}
</script>

Usage

<VueMaterialDateTimePicker v-model="date" :is-date-only="true" />

value prop that is handled by v-model will be new Date() type string

Available props

PropTypeDefaultDescription
valueStringDate value of the date time picker
valueFormattedStringFormatted value that will be displayed, if
not passed value (JS Date()) will be used
is-date-onlyBooleanDefine if picker takes only date or time too
0.6.0

4 years ago

0.5.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.2.4

4 years ago

0.2.3

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago