Last active
January 2, 2016 19:09
-
-
Save xudejian/8348208 to your computer and use it in GitHub Desktop.
select2
高亮条颜色修改
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.my-select .select2-highlighted { | |
background-color: gray; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<select ui-select2='select2Options' ng-model="select2" data-placeholder="Pick a number"> | |
<option value=""></option> | |
<option value="one">First</option> | |
<option value="two">Second</option> | |
<option value="three">Third</option> | |
</select> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
angular.module('select2App') | |
.controller('MainCtrl', function ($scope) { | |
$scope.select2Options = { | |
dropdownCssClass: 'my-select' | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment