nc-tmta-config
v1.0.2
Published
nc-tmta-config
Downloads
6
Readme
nc-tmta-config
nc-tmta-config widget for ncform
Install and basic usage
npm i -s nc-tmta-config
Add the widget
import ncTmtaConfig from 'nc-tmta-config';
Vue.use(vueNcform, { extComponents: {ncTmtaConfig} });
// or vm.$ncformAddWidget({name: 'ncTmtaConfig', widget: ncTmtaConfig});
Use the widget
{
"type": "object",
"properties": {
"name": {
"type": "string",
"ui": {
"widget": "nc-tmta-config",
"widgetConfig": {
"dataSchema": {
"type": "object",
"properties": {
"actions": {
"type": "array",
"items": {
"type": "$tmta-widget"
}
},
"form": {
"type": "$ncform"
}
}
},
"minLines": 10,
"maxLines": null
}
}
}
}
}
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