Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-ctk-date-time-picker

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-ctk-date-time-picker

A vue component for select date & time (by Chronotruck)

  • 1.1.13
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6K
decreased by-60.01%
Maintainers
1
Weekly downloads
 
Created
Source

vue-ctk-date-time-picker

A vue component for select date & time (by Chronotruck)

vue-ctk-date-time-picker

Demo

A demo

Installation

Using yarn

yarn add vue-ctk-date-time-picker

Using npm

npm i --save vue-ctk-date-time-picker

Demo and Docs

npm run serve

Usage

ES6 Modules / CommonJS

import VueCtkDateTimePicker from 'vue-ctk-date-time-picker';
import 'vue-ctk-date-time-picker/dist/vue-ctk-date-time-picker.min.css';

Vue.component('vue-ctk-date-time-picker', VueCtkDateTimePicker);
<vue-ctk-date-time-picker></vue-ctk-date-time-picker>

UMD

<vue-ctk-date-time-picker></vue-ctk-date-time-picker>

<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/umd/vue-ctk-date-time-picker.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/umd/vue-ctk-date-time-picker.min.css">

<script type="text/javascript">
  Vue.component('vue-ctk-date-time-picker', window.VueCtkDateTimePicker.default);
</script>

Props API

PropsTypeRequiredDefault
v-modelString/Intyes-
labelStringnoSelect date & time
hint*textno-
error-hint**Booleannofalse
color***String (hex)nododgerblue
minute-intervalIntno1
formattedstringno'llll' (momentjs format)
formatstringno'YYYY-MM-DDTHH:mm'
time-formatstringno'H:mm a'
localestringnoen
disable-timeBooleannofalse
disable-dateBooleannofalse
without-headerBooleannofalse
idstringnoCtkDateTimePicker
min-date****stringno-
max-date****stringno-
no-weekends-daysBooleannofalse
auto-closeBooleannofalse
without-inputBooleannofalse

*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

****min-date & max-date : Must be 'YYYY-MM-DD' format

Contribution

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

Build

Build configuration is located in the poi.config.js file, to build just run: npm run build, it will build to cjs and umd directories.

Tests

This template uses karma with chai by default, you can change test settings in poi.config.js

npm run test npm run test:watch npm run test:cov

License

This project is licensed under MIT License

Keywords

FAQs

Package last updated on 10 Jul 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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc