JSPM

data-field-list

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q21319F
  • License MIT

Package Exports

  • data-field-list

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (data-field-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

data-field-list

API

createListField

Create a virtual-dom list (object or array) data-field for use with data-ui.

Parameters

  • options Object an options object, including any properties you can pass to virtual-dom/h
    • options.display Boolean true for display mode, default is false for input mode

    • options.keys Boolean , false for array mode, default is true for object mode

Examples

var createListField = require('data-field-string')
var field = createListField()
var tree = field.render(h, properties, ['a', 'b', 'c'])

createListField

Create a virtual-dom list (object or array) data-field for use with data-ui.

Parameters

  • h function virtual-dom h function

  • properties Object an options object, including any properties you can pass to virtual-dom/h

    • properties.display Boolean true for display mode, default is false for input mode

    • properties.keys Boolean , false for array mode, default is true for object mode

    • properties.value Object an array or flat object

    • properties.value Array an array or flat object

  • value Object an array or flat object

  • value Array an array or flat object

Examples

var createListField = require('data-field-string')
var field = createListField()
var tree = field.render(h, properties, ['a', 'b', 'c'])

Installation

npm install data-field-list --save

Or install the data-fields module:

npm install data-fields --save

Tests

npm install
npm test

See also

  • data-fields – all data fields packaged together.
  • data-ui – a collection of modules for managing data.

License

MIT