dojox.form.MultiComboBox

since:1.2

Introduction

This widget is an experimental extension to ComboBox to allow "tag" style input using a datastore using a delimiter.

Usage

The MultiComboBox behaves the same as a plain ComboBox. Pass it a store and searchAttr:

var memberTagStore = new dojo.data.ItemFileReadStore({ url:"countries.json" });
var widget = new dojox.form.MultiComboBox({
   store:memberTagStore,
   searchAttr:"tag"
}, "frogin3");
widget.startup();

No additional CSS is required.

A delimiter variable can be set to indicate which key triggers a new value. It defaults to "," (comma) but can be any character.