Socket
Book a DemoInstallSign in
Socket

@lazy-copilot/datetimepicker

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lazy-copilot/datetimepicker

## Project setup ``` npm install ```

Source
npmnpm
Version
0.2.0-alpha.764e7152
Version published
Weekly downloads
17
-46.87%
Maintainers
1
Weekly downloads
 
Created
Source

@lazy-copilot/datetimepicker

RWD friendly date+time picker for Vue. Supports date, datetime and time modes, and disabling dates.

NPM

Demo

image

Install

$ npm install @lazy-copilot/datetimepicker

or 

$ yarn add @lazy-copilot/datetimepicker

Register

<template>
  <date-time-picker
    @submitHandler="submitHandler"
    @cancelHandler="cancelHandler"
    :startDate="startDate"
    :endDate="endDate"
    :startTime="startTime"
    :endTime="endTime"
  />
</template>

<script>
import '@lazy-copilot/datetimepicker/dist/datetimepicker.css'
import { DateTimePicker } from "@lazy-copilot/datetimepicker";

export default {
  name: "app",
  components: {
    DateTimePicker
  },
  methods: {
    submitHandler: function(data) {
      console.log("data: ", data);
    },
    cancelHandler: function() {
      console.log("close");
    }
  },
  data: function() {
    return {
      startTime: {
        hh: "05",
        mm: "23",
        A: "AM"
      },
      endTime: {
        hh: "11",
        mm: "21",
        A: "PM"
      },
      startDate: new Date("2018-12-13"),
      endDate: new Date("2018-12-16")
    };
  }
}
</script>

Remark

The time-picker here is a customized version of the awesome project vue2-timepicker by phoenixwong.

Reference

  • vue2-timepicker

Keywords

vue

FAQs

Package last updated on 27 Dec 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