@@ -34,15 +34,13 @@ Any requests? Add issue!
34
34
35
35
### theme (string)
36
36
37
- ```
38
37
md-theme attribute
39
- ```
40
38
41
39
## Fields
42
40
43
41
### input
44
42
45
- ``` json
43
+ ``` javascript
46
44
{
47
45
" type" : " input" ,
48
46
" key" : " firstName" ,
@@ -58,7 +56,7 @@ md-theme attribute
58
56
59
57
** rows (number, optional)**
60
58
61
- ``` json
59
+ ``` javascript
62
60
{
63
61
" type" : " textarea" ,
64
62
" key" : " bio" ,
@@ -78,7 +76,7 @@ md-theme attribute
78
76
79
77
** valueProp (string, optional)**
80
78
81
- ``` json
79
+ ``` javascript
82
80
{
83
81
" type" : " radio" ,
84
82
" key" : " name" ,
@@ -104,7 +102,7 @@ md-theme attribute
104
102
105
103
** valueProp (string, optional)**
106
104
107
- ``` json
105
+ ``` javascript
108
106
{
109
107
" type" : " select" ,
110
108
" key" : " name" ,
@@ -124,7 +122,7 @@ md-theme attribute
124
122
125
123
### checkbox
126
124
127
- ``` json
125
+ ``` javascript
128
126
{
129
127
" type" : " checkbox" ,
130
128
" key" : " terms" ,
@@ -137,7 +135,7 @@ md-theme attribute
137
135
138
136
### switch
139
137
140
- ``` json
138
+ ``` javascript
141
139
{
142
140
" type" : " switch" ,
143
141
" key" : " terms" ,
@@ -148,6 +146,42 @@ md-theme attribute
148
146
}
149
147
```
150
148
149
+ ### datepicker
150
+
151
+ ** placeholder (string, optional)**
152
+
153
+ md-placeholder
154
+
155
+ ** minDate (Date, optional)**
156
+
157
+ md-min-date
158
+
159
+ ** maxDate (Date, optional)**
160
+
161
+ md-max-date
162
+
163
+ ** filterDate (function, optional)**
164
+
165
+ md-filter-date
166
+
167
+ ``` javascript
168
+ {
169
+ " type" : " datepicker" ,
170
+ " key" : " start" ,
171
+ " templateOptions" : {
172
+ " theme" : " custom" ,
173
+ " placeholder" : " Start date" ,
174
+ " minDate" : minDate, // instance of Date
175
+ " maxDate" : maxDate, // instance of Date
176
+ " filterDate " : function (date ) {
177
+ // only weekends
178
+ var day = date .getDay ();
179
+ return day === 0 || day === 6 ;
180
+ }
181
+ }
182
+ }
183
+ ```
184
+
151
185
## Wrappers
152
186
153
187
- mdInputContainer
0 commit comments