0.1.1 • Published 5 years ago

@ncform/nc-dx-input v0.1.1

Weekly downloads
1
License
-
Repository
github
Last release
5 years ago

nc-dx-input

nc-dx-input widget for ncform

npm.io

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