data-field-string
v2.0.0
Published
## API
Downloads
3
Maintainers
Readme
data-field-string
API
createStringField
Create a virtual-dom string data-field for use with data-ui.
Parameters
options
Object an options object, including any properties you can pass to virtual-dom/hoptions.display
Boolean true for display mode, default is false for input mode
Examples
var createStringField = require('data-field-string')
var field = createStringField()
var vtree = field.render(h, {}, 'example string')
createStringField
Create a virtual-dom string data-field for use with data-ui.
Parameters
h
function virtual-domh
functionproperties
Object an options object, including any properties you can pass to virtual-dom/hproperties.display
Boolean true for display mode, default is false for input modeproperties.value
String any string
value
String any string
Examples
var createStringField = require('data-field-string')
var field = createStringField()
var vtree = field.render(h, {}, 'example string')
Installation
npm install data-field-string --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.