@ncform/nc-dx-input

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @ncform/nc-dx-input

Weekly Downloads

3

Version

0.1.1

License

none

Unpacked Size

382 kB

Total Files

29

Last publish

Collaborators

  • gcaufy
  • daniel-dx
  • kyleloh