# vuetify-datetime-picker

> DatetimePicker component for Vuetify.js.

Latest version **2.1.1** (published 2019-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install vuetify-datetime-picker
pnpm add vuetify-datetime-picker
yarn add vuetify-datetime-picker
bun add vuetify-datetime-picker
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.1 |
| Published | 2019-10-12 |
| First published | 2018-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 57.6 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| GitHub stars | 172 |
| Author | Darren Fang |
| Maintainers | darrenfang |

## Links

- npm: https://www.npmjs.com/package/vuetify-datetime-picker
- Repository: https://github.com/darrenfang/vuetify-datetime-picker
- Homepage: https://github.com/darrenfang/vuetify-datetime-picker#readme
- Issues: https://github.com/darrenfang/vuetify-datetime-picker/issues
- npm.io page: https://npm.io/package/vuetify-datetime-picker

## Dependencies (3)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [vuetify](https://npm.io/package/vuetify.md) ^2.1.3
- [date-fns](https://npm.io/package/date-fns.md) ^2.1.0

## Recent versions

- 2.1.1 (latest) — 2019-10-12
- 1.1.3 (legacy) — 2019-10-12
- 2.1.0-beta3 (dev) — 2019-09-16
- 2.1.0 — 2019-09-16
- 2.1.0-beta2 — 2019-09-16
- 2.1.0-beta1 — 2019-09-16
- 1.1.2 — 2019-08-19
- 2.0.3 — 2019-08-19
- 2.0.2 — 2019-08-17
- 1.1.1 — 2019-08-17
- 2.0.1 — 2019-08-17
- 2.0.0 — 2019-08-17
- 1.1.0 — 2019-08-17
- 1.0.13 — 2019-02-22
- 1.0.12 — 2019-02-22
- … 11 more at https://npm.io/package/vuetify-datetime-picker/versions

## README

# vuetify-datetime-picker

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/darrenfang/vuetify-datetime-picker/blob/master/LICENSE)
[![npm version](https://img.shields.io/npm/v/vuetify-datetime-picker.svg?style=flat)](https://www.npmjs.com/package/vuetify-datetime-picker)
[![CircleCI](https://img.shields.io/circleci/project/github/darrenfang/vuetify-datetime-picker.svg)](https://circleci.com/gh/darrenfang/vuetify-datetime-picker)

DatetimePicker component for Vuetify.js.

[Online Demo](http://darrenfang.github.io/vuetify-datetime-picker/ 'Online Demo')

[Demo Source Code](https://github.com/darrenfang/vuetify-datetime-picker/blob/master/src/app.vue 'Demo Source Code')

## Installation

```shell
npm install --save vuetify-datetime-picker

or

yarn add vuetify-datetime-picker
```

```js
import Vue from 'vue'
import DatetimePicker from 'vuetify-datetime-picker'
// (Optional) import 'vuetify-datetime-picker/src/stylus/main.styl'

Vue.use(DatetimePicker)
```

If use the `main.styl`, you should configure the `stylus-loader` in `webpack.config.js`, or just ignore this style sheet.

## Usage

Once installed, it can be used in a template as simply as:

```html
<v-datetime-picker label="Select Datetime" v-model="datetime"> </v-datetime-picker>
```

## Properties

| Name             | Type        | Default Value | Description                                                                                                 |
| ---------------- | ----------- | ------------- | ----------------------------------------------------------------------------------------------------------- |
| datetime (model) | Date/String |               | Time picker model.                                                                                          |
| disabled         | Boolean     | false         | Input is disabled.                                                                                          |
| loading          | Boolean     | false         | Input is loading.                                                                                           |
| label            | string      |               | Sets input label.                                                                                           |
| dialogWidth      | Number      | 340           | The width of the dialog.                                                                                    |
| dateFormat       | string      | yyyy-MM-dd    | Defines the format of a date.                                                                               |
| timeFormat       | string      | HH:mm         | Defines the format of a time.                                                                               |
| clearText        | string      | CLEAR         | Sets the text of the clear button.                                                                          |
| okText           | string      | OK            | Sets the text of the ok button.                                                                             |
| textFieldProps   | Object      |               | Text fields properties. See [Vuetify Docs](https://vuetifyjs.com/en/components/text-fields 'Vuetify Docs')  |
| datePickerProps  | Object      |               | Date pickers properties.See [Vuetify Docs](https://vuetifyjs.com/en/components/date-pickers 'Vuetify Docs') |
| timePickerProps  | Object      |               | Time pickers properties.See [Vuetify Docs](https://vuetifyjs.com/en/components/time-pickers 'Vuetify Docs') |

## Events

| Name  | Arguments           | Description             |
| ----- | ------------------- | ----------------------- |
| input | value (Date/String) | The updated bound model |

## Slots

| Name     | Description                                                                                 |
| -------- | ------------------------------------------------------------------------------------------- |
| dateIcon | Slot to put custom icon in the date tab.                                                    |
| timeIcon | Slot to put custom icon in the time tab.                                                    |
| actions  | Slot to put custom buttons in the dialog.                                                   |
| progress | Slot for custom progress linear (displayed when loading prop is not equal to Boolean False) |

---
_Source: https://npm.io/package/vuetify-datetime-picker · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
