@ncform/nc-dx-input
v0.1.1
Published
Support for switching between dx expression input and other form controls
Downloads
8
Readme
nc-dx-input
nc-dx-input widget for 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