1.0.9 • Published 3 years ago

vue-scroll-datepicker-cashbac v1.0.9

Weekly downloads
13
License
ISC
Repository
github
Last release
3 years ago

Vue Nuxt Scroll Datepicker - Cashbac

test test test

In this article, we’ll look at how date and time picker and a virtual scroll. Fast, powerful and easy to use component datetime picker for Nuxt Vue.

Demo

See demo here

vue-datepicker-picker-cashbac

Requirements

  • Vue CLI ^@vue/cli 4.5.11
  • Vue Nuxt v2.14.12

Usage

Then we import the styles from the package in the component. v-model lets us save the selection to the datetime state. It has many slots to let us customize any section of the date-time picker.

npm install vue-scroll-datepicker-cashbac --save
<template>
  <div class="container">
    <div>
      <h1>
        Scroll Datepicter
      </h1>
      <scrolldatepicker 
        placeholder="May 28, 1989"
        v-model="dateBirth"
        :theme-color="'#CDCDCD'"
        :min="'1970-01-01'"
        :max="'2010-01-01'"
        :input-class="'vue-date-input'"
        :input-style="{color:'#333333'}"
      />
    </div>
  </div>
</template>

<script>
import scrolldatepicker from 'node_modules/vue-scroll-datepicker-cashbac/components/Scrolldatepicker';
export default {
  data() {
    return {
      dateBirth: '',
      dataGender: 'Female',
      dataName: ''
    };
  },
  components: {
    scrolldatepicker
  }
}
</script>

<style lang="scss">
  @import "node_modules/vue-scroll-datepicker-cashbac/assets/scrolldatepicker.scss";
</style>

Props:

NameTypeDefaultDescription
v-model, valueString, Date, DateTime (luxon)yyyy-LL-dd HH:mm:ssValue
valueStringnullValue
maxString, Date, DateTime (luxon)yyyy-LL-dd HH:mm:ssMax date
minString, Date, DateTime (luxon)yyyy-LL-dd HH:mm:ssMin date
placeholderStringnull
inputClassStringnull
inputStyleStringnull
themeColorStringnull

Events:

Name
close
open
change-month
change-year
change-decade

Methods:

NameDescription
openOpen datetime picker
closeClose datetime picker

Development

# install dependencies
$ yarn install

# serve with hot reload at localhost:3000
$ yarn dev

# build for production and launch server
$ yarn build
$ yarn start

# generate static project
$ yarn generate
1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago