deliteful-Select-user-store-decl
Sample using deliteful/Select with user's store instead of the default store. The Select widget is created declaratively.
HTML
<script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.14/require.js"></script>
<d-select store="myStore">
{ "text": "Option 1", "value": "1" },
{ "text": "Option 2", "value": "2" },
{ "text": "Option 3", "value": "3" },
{ "text": "Option 1", "value": "4" },
{ "text": "Option 2", "value": "5" },
{ "text": "Option 3", "value": "6" },
{ "text": "Option 1", "value": "7" },
{ "text": "Option 2", "value": "8" },
{ "text": "Option 3", "value": "9" },
{ "text": "Option 1", "value": "10" }
</d-select>
JavaScript
require.config({
baseUrl: "http://ibm-js.github.io/libraries/master/",
});
require(["deliteful-build/layer"], function () {
require(["deliteful/Select", "requirejs-domready/domReady!"],
function () {
document.body.style.display = "";
});
});