New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

vuetify-datetime

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-datetime

DateTime component to vuetify 2.x

latest
npmnpm
Version
2.0.4
Version published
Maintainers
1
Created
Source

vuetify-datetime

This component works with vuetify. input:

  • 14/05/2019 12:13 (Locale allows you to define others date formats).
  • 14/05/2019 12:13:14 (with seconds)

v-model: (milliseconds) 1557802800000

if you need a component to input mask dates, working in milliseconds. Maybe it can help you:

vuetify-simple-date

See DEMO here

GitHub

npm

Install:

$ npm install vuetify-datetime --save

Register component:
1- Create a src/plugins/vuetify-datetime.js file with the following content:
import Vue from "vue";
import VuetifyDateTime from "vuetify-datetime";
Vue.use(VuetifyDateTime);
export default VuetifyDateTime;

2- Add to src/mains.js file:
import "./plugins/vuetify-datetime.js";

Parent component:
<template>
  <div>
    <vuetify-datetime v-model="value" v-bind:label="label" v-bind:options="options"/>
    v-model parent: {{ value }}
  </div>
</template>
<script>
export default {
  data: () => ({
    value: "1557802800000",
    label: "Date",
    options: {
      tabDateTitle: "Data",
      tabTimeTitle: "Hora",
      locale: "pt-BR",
      format: "DD/MM/YYYY",     - Date format only. Do not include the time format here.
      icon: "event",            - "" to disable.
      iconTime: "av_timer",     - "" to disable. Clicking on this icon, will open the time window.
      titleBarColor: "blue",
      backgroundColor: "white",
      closeOnDateClick: false,  - You can define what happens after clicking the date picker: Close the window or go to the timer picker.
      useSeconds: false,        - Set true to working with seconds as well.
      clearable: true,
      outlined: false,
    }
  })
};
</script>

FAQs

Package last updated on 24 Mar 2020

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