https://github.com/ncform/nc-dx-input
Support for switching between dx expression input and other form controls
https://github.com/ncform/nc-dx-input
Last synced: about 1 month ago
JSON representation
Support for switching between dx expression input and other form controls
- Host: GitHub
- URL: https://github.com/ncform/nc-dx-input
- Owner: ncform
- Created: 2019-06-05T10:33:24.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-02-10T17:57:50.000Z (over 4 years ago)
- Last Synced: 2024-12-17T09:59:45.231Z (over 1 year ago)
- Language: JavaScript
- Size: 373 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nc-dx-input
nc-dx-input widget for [ncform](https://github.com/ncform/ncform)

## Install and basic usage
```
npm i -s @ncform/nc-dx-input
```
**Add the widget**
```
import ncDxInput from '@ncform/nc-dx-input';
Vue.use(vueNcform, { extComponents: {ncDxInput} });
// or vm.$ncformAddWidget({name: 'ncDxInput', widget: ncDxInput});
```
**Use the widget**
```
{
"type": "object",
"properties": {
"name": {
"type": "array",
"widget": "nc-dx-input",
"widgetConfig": {
"realWidget": {
"widget": "select",
"widgetConfig": {
"multiple": true,
"enumSource": [
{
"value": "daniel",
"label": "daniel"
},
{
"value": "sarah",
"label": "sarah"
}
]
}
}
}
}
}
}
```
## 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
```