Closed matt212 closed 7 years ago
Hi ,
Again awesome multiselect plugin . i am want to pass dynamic return type for multiple (multiselects) and hence assign value through global scope base.multiselectname and base.multiselectID and I am getting this error
My code base
`var options = { url: '', method: 'GET', cache: true, headers: base.config.headers, transformResponse: function(data) { var result = angular.fromJson(data); console.log(result); return result.map(function(country) { return { Mname: country[base.multiselectname], modnameID: country[base.multiselectID] }; }); } }; //$scope.country = 'SV'; base.colsearch = "Rolename"; base.multiselectID="RoleID"; base.multiselectname="Rolename"; $scope.remote = angular.copy(options); $scope.remote.url = '/role/api/searchtype/' + base.pageno + '/' + base.pageSize + '/' + base.searchparam + '/' + base.colsearch + '', base.config; $scope.remoteParam = "modname";`
and html part of code
`<script type="text/ng-template" id="selector/demo/country"> <i class="flag" ng-class="option.modnameID.toLowerCase()"></i> [{option.Mname}] </script> <select selector model="Mname" value-attr="modnameID" remote="remote" remote-param="[{remoteParam}]" view-item-template="'selector/demo/country'" dropdown-item-template="'selector/demo/country'" placeholder="Choose one or more countries..." change="assigncall(newValue, oldValue)" multi="true" ></select>`
the issue was remote="remote2" tag in my second instance of multiselect
Hi ,
Again awesome multiselect plugin . i am want to pass dynamic return type for multiple (multiselects) and hence assign value through global scope base.multiselectname and base.multiselectID and I am getting this error
My code base
and html part of code