https://github.com/ncform/nc-form
nc-form widget for ncform
https://github.com/ncform/nc-form
Last synced: 3 days ago
JSON representation
nc-form widget for ncform
- Host: GitHub
- URL: https://github.com/ncform/nc-form
- Owner: ncform
- Created: 2019-06-14T02:01:45.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T18:11:29.000Z (over 4 years ago)
- Last Synced: 2025-10-20T12:44:51.184Z (8 months ago)
- Language: JavaScript
- Size: 342 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nc-form
nc-form widget for [ncform](https://github.com/ncform/ncform)
## Install and basic usage
```
npm i -s @ncform/nc-form
```
**Add the widget**
```
import ncForm from '@ncform/nc-form';
Vue.use(vueNcform, { extComponents: {ncForm} });
// or vm.$ncformAddWidget({name: 'ncForm', widget: ncForm});
```
**Use the widget**
```
{
"type": "object",
"properties": {
"name": {
"type": "object",
"widget": "nc-form",
"widgetConfig": {
"schema": {
"type": "object",
"properties": {
"name": {
"type": "string"
}
}
}
}
}
}
}
```
## 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
```