Package Exports
- vue-ctk-date-time-picker
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-ctk-date-time-picker) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-ctk-datetime-picker
A vue component for select date & time (by Chronotruck)
Demo
An example is available
Install
npm install vue-ctk-date-time-picker --save
In single component
import CtkDateTimePicker from 'vue-ctk-date-time-picker'
var yourComponent = new Vue({
components: { CtkDateTimePicker },
...
})
<template>
...
<ctk-date-time-picker
v-model="value"
:label="'Choose a time'"
:hint="'Text'"
:error-hint="true"
:minute-interval="10"
color="#FF0000" />
...
</template>
Props API
Props | Type | Required | Default | Options |
---|---|---|---|---|
v-model | String/Int | true | - | - |
label | String | false | Enter Text | - |
type | String | no | text | text or number |
hint* | text | no | - | |
error-hint** | Boolean | no | false | |
color*** | String (hex) | no | dodgerblue | |
minute-interval | Int | no | 1 |
*hint : Is a text that replaces the label/placeholder
**error-hint : When is true
--> Input border & label are red
***color: Replace color for the hint, the borders & time selected in dropdown
Contribution
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run serve
# build component
vue-cli-service build --target wc --name ctk-date-time-picker ./src/main-build.js