nc-tmta-config

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i nc-tmta-config

Weekly Downloads

0

Version

1.0.2

License

none

Unpacked Size

30.2 kB

Total Files

3

Last publish

Collaborators

  • daniel-dx