edchat / deliteful-Combobox-build

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

deliteful-Combobox-build

Build version of ibm-js/deliteful/Combobox.

Status

No official release yet.

Installation

Bower release installation:

$ bower install "https://github.com/edchat/deliteful-Combobox-build.git"

In the future (after it is published) it will be:

$ bower install deliteful-Combobox-build

How to use

To load the minified layer and it's dependencies you have two options, you can include them with script tags, or you can wrap your main require call with another require, requiring "delite-fullBuild/fullBuild", "deliteful-Combobox-build/layer". Then you should continue to refer to modules with "deliteful/Combobox".

For example, to wrap the main require with another require, this code:

require(["app/main", "deliteful/Combobox"], function() {
	...
});

Becomes:

require(["delite-fullBuild/fullBuild", "deliteful-Combobox-build/layer"], function() {
	require(["app/main", "deliteful/Combobox"], function() {
		...
	});
});

Or you can load the "deliteful-Combobox-build/layer" and the "delite-fullBuild/fullBuild" with script tags, without the extra require for "deliteful-Combobox-build/layer" like this:

<script src="bower_components/delite-fullBuild/fullBuild.js"></script>
<script src="bower_components/deliteful-Combobox-build/layer.js"></script>

Then to use the Combobox widget with a declarative instantiation, add this to your html:

  <d-combobox>
    <d-list store="store"></d-list>
  </d-combobox>
  <d-store id="store">
    { "label": "France", ... },
      ...
  </d-store>

See deliteful/Combobox for full details on how instantiate a Combobox widget.

Licensing

This project is distributed by the Dojo Foundation and licensed under the "New" BSD License. All contributions require a Dojo Foundation CLA.

About

License:Other