v-field-helper
TypeScript icon, indicating that this package has built-in type declarations

0.0.17 • Public • Published

Build StatusCoverage Status

v-field-helper

A Node.js module for interface and helpers for data inputs and json structures

Installation

npm install v-field-helper --save
yarn add v-field-helper
bower install v-field-helper --save

Usage

Javascript

var vfh = require('v-field-helper');
VFieldHelper = vfh.VFieldHelper;
var result = VFieldHelper.buildBaseString('purchaser');
Output should be:
  {
    placeholder: 'Type value_',
    custom_input_size: '4',
    input_name: 'purchaser',
    label: 'Purchaser',
    display_name: 'Purchaser',
    terse_display_name: 'Purchaser',
    hint: 'Purchaser',
    required: false,
    editable: true,
    as: 'string',
    fill_approach: 'manual',
    display: true,
    default_visible: true,
  }

TypeScript

import { VFieldHelper } from 'v-field-helper';
console.log(VFieldHelper.buildBaseString('purchaser'))
Output should be:
  {
    placeholder: 'Type value_',
    custom_input_size: '4',
    input_name: 'purchaser',
    label: 'Purchaser',
    display_name: 'Purchaser',
    terse_display_name: 'Purchaser',
    hint: 'Purchaser',
    required: false,
    editable: true,
    as: 'string',
    fill_approach: 'manual',
    display: true,
    default_visible: true,
  }

AMD

define(function(require,exports,module){
  var vfh = require('v-field-helper');
});

Test

npm run test

Package Sidebar

Install

npm i v-field-helper

Weekly Downloads

1

Version

0.0.17

License

MIT

Unpacked Size

191 kB

Total Files

11

Last publish

Collaborators

  • markoblad