Created
July 10, 2016 05:42
-
-
Save sholtomaud/e8e7d2a142c5d76adf3f15cbf55f9a8c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fastn = require('fastn')({ | |
list: require('fastn/listComponent'), | |
text: require('fastn/textComponent'), | |
templater: require('fastn/templaterComponent'), | |
_generic: require('fastn/genericComponent') | |
}, true); | |
// items: fastn.binding('dropdowns').attach(dropdownModel), | |
// template: function(model,scope){ | |
// return fastn('option',scope.get('item')); | |
// } | |
const app = fastn('div', 'Hello Datalist ', | |
fastn('input',{ | |
list:"browsers", | |
name:"myBrowser" | |
}), | |
fastn('datalist', | |
{ | |
id: 'browsers' | |
}, | |
fastn('option',{value:'fastn 1'}), | |
fastn('option',{value:'fastn 2'}), | |
fastn('option',{value:'fastn 3'}) | |
) | |
) | |
app.render(); | |
document.body.appendChild(app.element); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment