src/aria/widgets/form/list/ListController.js
function (args, cb) {

            this.setData(args.dataModel);
            var itemsInfo = args.itemsInfo;

            var res = this._mergeItemsAndSelectionInfo(itemsInfo.items, itemsInfo.selectedValues, itemsInfo.selectedIndex);
            this._setItems(res.items);

            this.json.setValue(this._data, "selectedIndex", res.selectedIndex);
            this.json.setValue(this._data, "selectedCount", res.selectedCount);
            // this.json.setValue(this._data, "selectedValues", res.selectedValues);

            if (itemsInfo.selectedValues == null) {
                this.setSelectedIndex(itemsInfo.selectedIndex);
            }
            var itemsView = new ariaTemplatesView(this._data.items);
            this.json.setValue(this._data, "itemsView", itemsView);

            if (this._data.activateSort) {
                itemsView.setSort(itemsView.SORT_ASCENDING, "sortByLabel", this._sortByLabel);
            }

            this.$callback(cb);

        }
function (args, cb) {

            this.setData(args.dataModel);
            var itemsInfo = args.itemsInfo;

            var res = this._mergeItemsAndSelectionInfo(itemsInfo.items, itemsInfo.selectedValues, itemsInfo.selectedIndex);
            this._setItems(res.items);

            this.json.setValue(this._data, "selectedIndex", res.selectedIndex);
            this.json.setValue(this._data, "selectedCount", res.selectedCount);
            // this.json.setValue(this._data, "selectedValues", res.selectedValues);

            if (itemsInfo.selectedValues == null) {
                this.setSelectedIndex(itemsInfo.selectedIndex);
            }
            var itemsView = new ariaTemplatesView(this._data.items);
            this.json.setValue(this._data, "itemsView", itemsView);

            if (this._data.activateSort) {
                itemsView.setSort(itemsView.SORT_ASCENDING, "sortByLabel", this._sortByLabel);
            }

            this.$callback(cb);

        }
function ( args , cb ) { this . setData ( args . dataModel ) ; var itemsInfo = args . itemsInfo ; var res = this . _mergeItemsAndSelectionInfo ( itemsInfo . items , itemsInfo . selectedValues , itemsInfo . selectedIndex ) ; this . _setItems ( res . items ) ; this . json . setValue ( this . _data , "selectedIndex" , res . selectedIndex ) ; this . json . setValue ( this . _data , "selectedCount" , res . selectedCount ) ; // this.json.setValue(this._data, "selectedValues", res.selectedValues); if ( itemsInfo . selectedValues == null ) { this . setSelectedIndex ( itemsInfo . selectedIndex ) ; } var itemsView = new ariaTemplatesView ( this . _data . items ) ; this . json . setValue ( this . _data , "itemsView" , itemsView ) ; if ( this . _data . activateSort ) { itemsView . setSort ( itemsView . SORT_ASCENDING , "sortByLabel" , this . _sortByLabel ) ; } this . $callback ( cb ) ; }
Initialise the module controller
@param {Object} args
@param {aria.core.CfgBeans:Callback} cb callback
Initialise the module controller