dojox/form/MultiComboBox.js

  • Provides:

    • dojox.form.MultiComboBox
  • Requires:

    • dijit.form.ComboBox in common in project dijit
    • dijit.form.ValidationTextBox in common in project dijit
  • dojox.form.MultiComboBox

    • type
      Function
    • chains:
      • dijit.form.ValidationTextBox: (prototype)
      • dijit.form.ValidationTextBox: (call)
      • dijit.form.ComboBoxMixin: (call)
    • mixins:
      • dijit.form.ComboBoxMixin.prototype: (prototype)
    • summary
      A ComboBox that accpets multiple inputs on a single line?
  • dojox.form.MultiComboBox.delimiter

    • type
      String
    • summary
      The character to use to separate items in the ComboBox input
  • dojox.form.MultiComboBox._previousMatches

    • summary
  • dojox.form.MultiComboBox._setValueAttr

    • type
      Function
    • parameters:
      • value: (typeof )
    • source: [view]
        if (this.delimiter && value.length != 0){
         value = value+this.delimiter+" ";
         arguments[0] = this._addPreviousMatches(value);
        }
        this.inherited(arguments);
    • summary
  • dojox.form.MultiComboBox._addPreviousMatches

    • type
      Function
    • parameters:
      • text: (typeof String)
    • source: [view]
        if(this._previousMatches){
         if(!text.match(new RegExp("^"+this._previousMatches))){
          text = this._previousMatches+text;
         }
         text = this._cleanupDelimiters(text);
        }
        return text; // String
    • returns
      String
    • summary
  • dojox.form.MultiComboBox._cleanupDelimiters

    • type
      Function
    • parameters:
      • text: (typeof String)
    • source: [view]
        if(this.delimiter){
         text = text.replace(new RegExp(" +"), " ");
         text = text.replace(new RegExp("^ *"+this.delimiter+"* *"), "");
         text = text.replace(new RegExp(this.delimiter+" *"+this.delimiter), this.delimiter);
        }
        return text;
    • summary
  • dojox.form.MultiComboBox._autoCompleteText

    • type
      Function
    • parameters:
      • text: (typeof String)
    • source: [view]
        arguments[0] = this._addPreviousMatches(text);
        this.inherited(arguments);
    • summary
  • dojox.form.MultiComboBox._startSearch

    • type
      Function
    • parameters:
      • text: (typeof String)
    • source: [view]
        text = this._cleanupDelimiters(text);
        var re = new RegExp("^.*"+this.delimiter+" *");

        
        if((this._previousMatches = text.match(re))){
         arguments[0] = text.replace(re, "");
        }
        this.inherited(arguments);
    • summary
  • dojox.form

    • type
      Object
    • summary
  • dojox

    • type
      Object
    • summary