Package Exports
- data-field-image
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-image) 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-image
API
createImageField
Create a virtual-dom image data-field for use with data-ui.
Parameters
optionsObject options objectoptions.displayBoolean true for display mode, default is false for input mode
Examples
var createImageField = require('data-field-image')
var field = createImageField(options)
var tree = field.render(h, props, 'http://example.com/example.jpg')createImageField
Render a virtual-dom image data-field.
Parameters
hfunction virtual-domhfunctionpropertiesObject properties object forhproperties.displayBoolean true for display mode, default is false for input modeproperties.valueString any image url
valueString any image url
Examples
var createImageField = require('data-field-image')
var field = createImageField(options)
var tree = field.render(h, props, 'http://example.com/example.jpg')Installation
npm install data-field-image --saveOr install the data-fields module:
npm install data-fields --saveTests
npm install
npm testSee also
- data-fields – all data fields packaged together.
- data-ui – a collection of modules for managing data.