I am currently working on an angular page and have implemented a dropdown with ng-Options to fetch and set values successfully. However, I am now looking to enhance the appearance of this dropdown. After exploring options like ui-select, I realized that beautifying the select box directly with CSS is not straightforward. I attempted to use ui-select but encountered challenges in achieving the desired results simply by adding it to the existing code. Can someone guide me on how to achieve the same outcome effectively?
SNIPPET:
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-select/0.20.0/select.min.css">
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular-ui-select/0.20.0/select.min.js"></script>
</head>
<body ng-app="myApp" ng-controller="myCtrl">
<select ng-model="colors" ng-options="x.text for x in colors track by x.value"></select>
<!-- <ui-select ng-model="colors" ng-options="x.text for x in colors track by x.value"></ui-select> Not Working-->
<script>
//app declaration
var app = angular.module('myApp',[]);
//controller declaration
app.controller('myCtrl',function($scope){
$scope.colors = [{value:1, text:"red"},{value:2, text:"green"},{value:3, text:"blue"}];
$scope.colors.value = 1;
});
</script>
</body>
</html>
RESULT:
https://i.stack.imgur.com/5sIHi.png
I'm seeking assistance in enhancing the visual appeal of my select dropdown using ui-select or alternative methods.