Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamespjarvis/simple-vue2-datetimepicker
a vue.js component for easy date and time picking.
https://github.com/jamespjarvis/simple-vue2-datetimepicker
Last synced: about 2 months ago
JSON representation
a vue.js component for easy date and time picking.
- Host: GitHub
- URL: https://github.com/jamespjarvis/simple-vue2-datetimepicker
- Owner: jamespjarvis
- Created: 2019-04-29T00:37:21.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T21:42:07.000Z (over 1 year ago)
- Last Synced: 2024-03-23T23:02:40.682Z (2 months ago)
- Language: Vue
- Homepage:
- Size: 5.51 MB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 21
-
Metadata Files:
- Readme: README.md
Lists
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (UI Components / Form)
- awesome-vue - simple-vue2-datetimepicker - A simple, easy to use vue.js component for date and time picking. :new: (Components & Libraries / UI Components)
README
# SIMPLE VUE 2 DATE TIME PICKER
Vue.js component for easy date and time picking.
![](usage.gif)
## Installation
```bash
# npm
npm i simple-vue2-datetimepicker
``````bash
# yarn
yarn add simple-vue2-datetimepicker
``````bash
# unpkg
https://unpkg.com/simple-vue2-datetimepicker
```## Usage
### Component
```html
import DateTimePicker from "simple-vue2-datetimepicker";
export default {
name: "App",
components: {
DateTimePicker
},
data() {
return {
myDate: new Date(),
options: {
// defaults
timeFormat: {
locale: "en-US",
weekday: "short",
year: "numeric",
month: "short",
day: "numeric",
hour: "numeric",
minute: "numeric",
hour12: true
},
display: {
maxWidth: 400
}
}
};
}
};```
### Global```javascript
import DateTimePicker from "simple-vue2-datetimepicker";
Vue.component('datetimepicker', DateTimePicker);
```### Plugin
```javascript
import DateTimePicker from "simple-vue2-datetimepicker";
Vue.use(DateTimePicker);
```## Development
- clone this repository
- install dependencies
- start the webpack development server with `yarn serve` or `npm run serve`
- go to `http://localhost:8080` in your browser