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

vuetify-date

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vuetify-date

Simple Date component to vuetify.

latest
Source
npmnpm
Version
0.1.11
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

vuetify-date

This component works with vuetify.

input:

  • 14/05/2019 (Locale allows you to define others date formats).

v-model: (milliseconds) 1557802800000

if you want a datetime component, please, try this:

vuetify-datetime

Dependency

  • VueJS
  • Vuetify
  • moment

See DEMO here

GitHub

npm

Install:

$ npm install vuetify-date --save

Register component:

1- Create a src/modules/vuetify-date.js file with the following content:
import Vue from "vue";
import VuetifyDate from "vuetify-date";
Vue.use(VuetifyDate);
export default VuetifyDate;

2- Add to src/mains.js file:
import "./modules/vuetify-date.js";

Parent component:
<template>
  <div>
    <vuetify-date 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: {
      locale: "pt-BR",
      format: "DD/MM/YYYY",     - Date format only. Do not include the time format here.
      clearable: true
    }
  })
};
</script>

Keywords

vuejs

FAQs

Package last updated on 19 Jul 2019

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