src/aria/widgets/controllers/MultiAutoCompleteController.js
function (value, removedSuggestionIndex) {
                var dataModel = this._dataModel;
                this._editedSuggestionIndex = removedSuggestionIndex;
                var report = new aria.widgets.controllers.reports.DropDownControllerReport();
                dataModel.value = value;
                dataModel.text = typeUtil.isString(value) ? value : value.label;
                report.text = dataModel.text;
                report.caretPosStart = 0;
                report.caretPosEnd = report.text.length;
                report.value = this.selectedSuggestions;
                return report;
            }
function (value, removedSuggestionIndex) {
                var dataModel = this._dataModel;
                this._editedSuggestionIndex = removedSuggestionIndex;
                var report = new aria.widgets.controllers.reports.DropDownControllerReport();
                dataModel.value = value;
                dataModel.text = typeUtil.isString(value) ? value : value.label;
                report.text = dataModel.text;
                report.caretPosStart = 0;
                report.caretPosEnd = report.text.length;
                report.value = this.selectedSuggestions;
                return report;
            }
function ( value , removedSuggestionIndex ) { var dataModel = this . _dataModel ; this . _editedSuggestionIndex = removedSuggestionIndex ; var report = new aria . widgets . controllers . reports . DropDownControllerReport ( ) ; dataModel . value = value ; dataModel . text = typeUtil . isString ( value ) ? value : value . label ; report . text = dataModel . text ; report . caretPosStart = 0 ; report . caretPosEnd = report . text . length ; report . value = this . selectedSuggestions ; return report ; }
Start editing a value. The value is supposed to have already been removed from the selectedSuggestions
array.
@param {String|Object} value (normally coming from the selectedSuggestions array)
@return {aria.widgets.controllers.reports.DropDownControllerReport}
Start editing a value . The value is supposed to have already been removed from the selectedSuggestions array .