Package Exports
- data-field-url
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-url) 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-url
API
createURLField
Create a virtual-dom url data-field for use with data-ui.
Parameters
optionsObject an options object, including any properties you can pass to virtual-dom/hoptions.displayBoolean true for display mode, default is false for input mode
Examples
var createURLField = require('data-field-url')
var field = createURLField()
var vtree = field.render(h, {}, 'http://example.com')createURLField
Create a virtual-dom url data-field for use with data-ui.
Parameters
hfunction virtual-domhfunctionpropertiesObject an options object, including any properties you can pass to virtual-dom/hproperties.displayBoolean true for display mode, default is false for input modeproperties.valueString any url
valueString any url
Examples
var createURLField = require('data-field-url')
var field = createURLField()
var vtree = field.render(h, {}, 'http://example.com')Installation
npm install data-field-url --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.