https://github.com/ncform/nc-date-picker
date-picker widget for ncform
https://github.com/ncform/nc-date-picker
Last synced: 3 months ago
JSON representation
date-picker widget for ncform
- Host: GitHub
- URL: https://github.com/ncform/nc-date-picker
- Owner: ncform
- Created: 2020-05-11T03:50:08.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T15:11:07.000Z (over 3 years ago)
- Last Synced: 2025-10-12T23:57:42.307Z (8 months ago)
- Language: Vue
- Size: 1.91 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nc-date-picker
nc-date-picker widget for [ncform](https://github.com/ncform/ncform)
## Install and basic usage
```
npm i -s @ncform/nc-date-picker
```
**Add the widget**
```
import ncDatePicker from '@ncform/nc-date-picker';
Vue.use(vueNcform, { extComponents: {ncDatePicker} });
// or vm.$ncformAddWidget({name: 'ncDatePicker', widget: ncDatePicker});
```
**Use the widget**
```
{
"type": "object",
"properties": {
"name": {
"type": "string",
"widget": "nc-date-picker",
"widgetConfig": {
type: 'datetime',
valueFormat: 'timestamp',
valueDigits: 10
}
}
}
}
```
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
```
npm run serve
```
You only need to care about `src/components/index.vue`
### Compiles and minifies for production
```
npm run build
```
### Run your tests
```
npm run test
```
### Lints and fixes files
```
npm run lint
```
### Run your end-to-end tests
```
npm run test:e2e
```
### Run your unit tests
```
npm run test:unit
```