Tagged Questions
0
votes
0answers
25 views
UI-Select2 shows id in tag
Here is the example
It should show text instead of id. However, it shows id now.
When I look into the code, I found this line
var convertToSelect2Model = function(angular_data) {
var ...
0
votes
0answers
37 views
select2 is not loading images for second time
I am using select2 with anular js for displaying the dropdown with images, I am achieving it to show it for the first time of page loads,
afterward when I navigate to another page and come back to ...
0
votes
0answers
33 views
Pass plain value to model Select2 angular-ui
I use select2 from angular-ui, everything works ok, but it passes to ng-model object and I need to get plain value
this is in controller
$scope.units = {
...
0
votes
1answer
68 views
Multiple select2 angularUI load remote data
I have an issue with loading remote data in multiple select2. My code is
var fetchGroups = function (queryParams) {
console.log(JSON.stringify(queryParams));
return ...
0
votes
0answers
182 views
angular-ui select2 bind text to model
Model binding works well with Angular-UI Select2 when all you really need from the dropdown is for it to tell you the value of the selected list element. Here's my markup:
<select ...
0
votes
1answer
296 views
select2 container smaller than dropdown
I've implemented angular-ui select2 into my application and it's working fine but the rendering of the select box container (above search) is smaller than the dropdown panel.
Here's what I mean:
...
4
votes
2answers
2k views
Trying to use angular ui-select2 in tag mode (not simple tag), losing objects
I've recently upgraded from angular 1.1.4 up to 1.2.9, and grabbed the latest ui-select2 directive and the latest select2 component. My select2s in tag mode have stopped working. The options list and ...
1
vote
0answers
955 views
angularjs + ui-select2 module does not trigger initSelection correctly
I'm trying to implement AngularJS + Select2 with Multiple selection enabled.
When I include the full angular-ui package, it works, however I do not want to use the full version.
So, I tried to do ...
4
votes
2answers
778 views
Issue with pre-populating angular-ui's select2
I have an issue with angular-ui/select2 control.
I would like to use angularjs to pre-populate the control with an array of objects. I use the init function in order to try and achieve this but ...
2
votes
1answer
907 views
select2 dropdown selected value doesn't get updated with the updated model
I use the latest select2 api (select2-3.4.5) and my html for select 2 looks like this.
<select ui-select2 id="select2-test" ng-model="mymodel.myTitle">
<option ...
0
votes
0answers
119 views
select2 disables a textbox binded to the same model
<select ui-select2="" data-ng-model="popupModel.processor">
<option value="">-- chose a processor --</option>
<option ng-repeat="p in ...
1
vote
1answer
2k views
Angular ui-select2 with AJAX multiselect - retrieve final selection values as ids instead of json
Angular ui-select2 with AJAX multiselect - retrieve final selection values as ids instead of json
Problem statement
I want to use a tokeninput/chosen/select2 style of ui control to edit an array of ...
2
votes
1answer
485 views
angular using ui-select2 to assign an object as a model property
Hypothetical example to illustrate a problem I am having using angular-UI select2. Let's say I have a screen where I want to edit a "game" model. A game, among other things has players. I want to ...
2
votes
1answer
2k views
Updating select2 via angular controller?
I'm attempting to use Angular's $http directive to pull a list of tags from a server, and use that to populate a select2 select. My code looks like this:
var samplePage = ...