Search Posts

Category: ui-select

UI Select Match value for binding when performing UPDATE

I am trying to make an UPDATE window. If I bring the data with $scope.project_data, it works for the INPUT TYPE=”TEXT”. But, not for the UI-Select. I think I have to make some changes to UI-SELECT-MATCH. But, I am not sure how to bind the SQL data to UI-SELECT-MATCH on the instance when the window is brought up. [HTML] <!– This works. –> <input type = “text” class = “form-control” ng-model = “project_data.project_title” id = […]

can’t import ui-select in angularjs and ES6

I’m trying to import ui-select in my js file using yarn and webpack than import it in my module as follow. import ngSanitize from ‘angular-sanitize’; import uiselect from ‘ui-select’; import ‘ui-select/dist/select.css’; export default angular.module(‘app.module’, [ /** … **/ ngSanitize, ‘’ /** … **/ ]) but When I check my generated css file I can see that the CSS was correctly imported however not the js.(there is no issue on my webpack config as I can […]

angular ui-select2 not set value in edit mode

<select id=”e1″ style=”width:100%” ui-select2 tabindex=”-1″ ng-init=”GetAllAgent()” ng-model=”Agent” ng-options=”ctr as ctr.AgentName for ctr in ListAgent track by ctr.AgentId” ng-change=”GetSubAgentList(Agent.AgentId)”> <option value=””> </option></select> when it is in edit mode,could not set the default value using the below code angular.forEach($scope.ListAgent, function (value, index) { if (value.AgentId == HR.AgentId) { $scope.Agent = $scope.ListAgent[index]; } }) $scope.ListAgent= [{ AgentId: “0”, AgentName:”Ann” }, { AgentId: “1”, AgentName:”Muh” }]; and HR.AgentId=1 Source: AngularJS

UI-SELECT binding to controller.js in Array?

First of all, thank you for your reading. I am new to the language. I am trying to use UI-SELECT and bind the data to controller.js to save into database. I know that UI-SELECT should be used with ng-model in “A.selected” way. I searched for some help but couldn’t find how to make the below code in array style to work. [HTML with UI-Select] <ui-select ng-model = “project_customer_company.selected” theme=”bootstrap”> <ui-select-match placeholder=””> {{$select.selected.customer_company_name}}</ui-select-match> <ui-select-choices repeat=”customer in […]

ui-select Does Not Drop Down On Click

Got a time-sink of a bug which is hard to solve. I’m implementing a multi-select control using ui-select. As you can see in the plunks from that site, when you click on the inputs, you are meant to get a drop-down list. With my attempt, I am not getting anything when I click on the input, unless I click in the list first, and then about 1cm below the list (which is where the actual […]