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
hfunction virtual-domhfunctionpropertiesObject properties object forhproperties.displayBoolean true for display mode, default is false for input modeproperties.valueString any image url
valueString any image urlimageurl
Examples
var createImageField = require('data-field-string')
createImageField(h, { onclick: function (e){} }, 'example string')Installation
Download node at nodejs.org and install it, if you haven't already.
npm install data-field-string --saveTests
npm install
npm testDependencies
- xtend: extend like a boss
Dev Dependencies
- budo: a browserify server for rapid prototyping
- documentation-readme: inject documentation into your README.md
- standard: JavaScript Standard Style
- tap-spec: Formatted TAP output like Mocha's spec reporter
- tape: tap-producing test harness for node and browsers
- virtual-raf: Create a RAF loop for virtual-dom
See also
- data-fields – all data fields packaged together.
- data-ui – a collection of modules for managing data.