Skip to content

Commit c1c6493

Browse files
authored
Merge pull request #1 from senthil090/Develop-Alpha-02
Develop 0.0.1-Alpha 02 (12/09/2017)
2 parents ff2cb11 + 6c0fdcf commit c1c6493

File tree

4 files changed

+39
-4
lines changed

4 files changed

+39
-4
lines changed

angular-mobile-select.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
height: 40px;
44
margin-top: 10px;
55
border-bottom: 2px solid #757575;
6+
font-family: Arial, Helvetica, sans-serif;
67
}
78
.ngm-select-floating-label{
89
position: relative;
910
left: 0px;
1011
font-size: 12px;
1112
visibility:hidden;
1213
}
14+
.ngm-select-active-float-label{
15+
color: #2979FF;
16+
}
1317
.ngm-select-selected-item{
1418
cursor: pointer;
1519
}
@@ -27,14 +31,15 @@
2731
}
2832
.ngm-select-load-header{
2933
padding: 10px;
30-
background: #6200EA;
34+
background: #2979FF;
3135
font-size: 16px;
3236
color: #FFF;
3337
z-index: 999;
38+
text-align: center;
3439
}
3540

3641
.ngm-select-load-list-container{
37-
max-height: 300px;
42+
max-height: 250px;
3843
overflow: auto;
3944
z-index: 999;
4045
background:#FFF;
@@ -45,7 +50,7 @@
4550
}
4651
.ngm-select-input-bottom
4752
{
48-
border-bottom: 2px solid #6200EA;
53+
border-bottom: 2px solid #2979FF;
4954
}
5055
.ngm-select-backdrop{
5156
position: fixed;

angular-mobile-select.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
scope: { placeholder: "@", list: "=", selected: "=", property: "@" },
2020
template: '<div class="ngm-select" ng-class="{\'ngm-select-input-bottom\':isDropped}">'+
2121
'<div class="ngm-select-placeholder">'+
22-
'<span class="ngm-select-floating-label" ng-class ="{\'ngm-select-float-label\': selected[property] || selected}">{{placeholder}}</span>'+
22+
'<span class="ngm-select-floating-label" ng-class ="{\'ngm-select-float-label\': selected[property] || selected , \'ngm-select-active-float-label\': isDropped}">{{placeholder}}</span>'+
2323
'</div>'+
2424
'<div class="ngm-select-selected-item" ng-click="open()">'+
2525
'{{selected[property] || selected || placeholder}}'+

demo/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<html>
33
<head>
44
<title>Demo Angular Mobile Select</title>
5+
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, maximum-scale=1" />
56
<script type="text/javascript" src="../bower_components/angular/angular.min.js"></script>
67
<script type="text/javascript" src="../bower_components/angular-animate/angular-animate.min.js"></script>
78
<script type="text/javascript" src="../bower_components/jquery/dist/jquery.min.js"></script>

package.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"name": "angular-mobile-select",
3+
"version": "0.0.1-Alpha-01",
4+
"description": "Keyboard like mobile select dropdown with angulat",
5+
"main": "angular-mobile-select.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/senthil090/angular-mobile-select.git"
12+
},
13+
"keywords": [
14+
"select",
15+
"dropdown",
16+
"angular"
17+
],
18+
"author": "Senthilkumar S",
19+
"license": "MIT",
20+
"bugs": {
21+
"url": "https://github.com/senthil090/angular-mobile-select/issues"
22+
},
23+
"homepage": "https://github.com/senthil090/angular-mobile-select#readme",
24+
"dependencies": {
25+
"angular": "angularjs#^1.6.6",
26+
"jquery": "^3.2.1",
27+
"angular-animate": "^1.6.6"
28+
}
29+
}

0 commit comments

Comments
 (0)