This repository was archived by the owner on Jan 22, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +55
-37
lines changed Expand file tree Collapse file tree 9 files changed +55
-37
lines changed Original file line number Diff line number Diff line change 5
5
6
6
``` javascript
7
7
{
8
- " type" : " checkbox" ,
9
- " key" : " terms" ,
10
- " templateOptions" : {
11
- " label" : " Terms and Conditions" ,
12
- " theme" : " custom"
8
+ type: " checkbox" ,
9
+ key: " terms" ,
10
+ templateOptions: {
11
+ label: " Terms and Conditions" ,
12
+ theme: " custom"
13
13
}
14
14
}
15
15
```
19
19
#### templateOptions.label _ : string_
20
20
21
21
#### templateOptions.theme _ : string_
22
+
23
+ #### templateOptions.disabled _ : boolean_
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ md-chips
32
32
33
33
#### templateOptions.theme * : string*
34
34
35
+ #### templateOptions.disabled _ : boolean_
36
+
35
37
#### templateOptions.placeholder * : string*
36
38
37
39
Placeholder text that will be forwarded to the input.
Original file line number Diff line number Diff line change 5
5
6
6
``` javascript
7
7
{
8
- " type" : " datepicker" ,
9
- " key" : " start" ,
10
- " templateOptions" : {
11
- " theme" : " custom" ,
12
- " placeholder" : " Start date" ,
13
- " minDate" : minDate, // instance of Date
14
- " maxDate" : maxDate, // instance of Date
15
- " filterDate " : function (date ) {
8
+ type: " datepicker" ,
9
+ key: " start" ,
10
+ templateOptions: {
11
+ theme: " custom" ,
12
+ placeholder: " Start date" ,
13
+ minDate: minDate, // instance of Date
14
+ maxDate: maxDate, // instance of Date
15
+ filterDate : function (date ) {
16
16
// only weekends
17
17
var day = date .getDay ();
18
18
return day === 0 || day === 6 ;
27
27
28
28
#### templateOptions.theme _ : string_
29
29
30
+ #### templateOptions.disabled _ : boolean_
31
+
30
32
#### templateOptions.placeholder _ : string_
31
33
The date input placeholder value
32
34
Original file line number Diff line number Diff line change @@ -30,6 +30,8 @@ Example
30
30
31
31
Value of md-theme directive
32
32
33
+ #### templateOptions.disabled _ : boolean_
34
+
33
35
#### templateOptions.step * : number*
34
36
35
37
only if templateOptions.type is 'number'
Original file line number Diff line number Diff line change 5
5
6
6
``` javascript
7
7
{
8
- " type" : " radio" ,
9
- " key" : " name" ,
10
- " templateOptions" : {
11
- " label" : " Name" ,
12
- " theme" : " custom" ,
13
- " labelProp" : " firstName" ,
14
- " valueProp" : " id" ,
15
- " options" : [
16
- {" firstName" : " Sarah" , id: 1 },
17
- {" firstName" : " Jessica" , id: 2 },
18
- {" firstName" : " Parker" , id: 3 }
8
+ type: " radio" ,
9
+ key: " name" ,
10
+ templateOptions: {
11
+ label: " Name" ,
12
+ theme: " custom" ,
13
+ labelProp: " firstName" ,
14
+ valueProp: " id" ,
15
+ options: [
16
+ {firstName: " Sarah" , id: 1 },
17
+ {firstName: " Jessica" , id: 2 },
18
+ {firstName: " Parker" , id: 3 }
19
19
]
20
20
}
21
21
}
27
27
28
28
#### templateOptions.theme _ : string_
29
29
30
+ #### templateOptions.disabled _ : boolean_
31
+
30
32
#### templateOptions.options _ : array_
31
33
32
34
Array with available options
Original file line number Diff line number Diff line change @@ -37,6 +37,8 @@ md-select
37
37
38
38
#### templateOptions.theme * : string*
39
39
40
+ #### templateOptions.disabled _ : boolean_
41
+
40
42
#### templateOptions.options * : array*
41
43
42
44
Array with available options
Original file line number Diff line number Diff line change 5
5
6
6
``` javascript
7
7
{
8
- " type" : " slider" ,
9
- " key" : " rate" ,
10
- " templateOptions" : {
11
- " theme" : " custom" ,
12
- " min" : 1 ,
13
- " max" : 5 ,
14
- " step" : 0.5 ,
15
- " discrete" : true
8
+ type: " slider" ,
9
+ key: " rate" ,
10
+ templateOptions: {
11
+ theme: " custom" ,
12
+ min: 1 ,
13
+ max: 5 ,
14
+ step: 0.5 ,
15
+ discrete: true
16
16
}
17
17
}
18
18
```
23
23
24
24
#### templateOptions.theme _ : string_
25
25
26
+ #### templateOptions.disabled _ : boolean_
27
+
26
28
#### templateOptions.min _ : number (default: 0)_
27
29
The minimum value the user is allowed to pick.
28
30
Original file line number Diff line number Diff line change 5
5
6
6
``` javascript
7
7
{
8
- " type" : " switch" ,
9
- " key" : " terms" ,
10
- " templateOptions" : {
11
- " label" : " Terms and Conditions" ,
12
- " theme" : " custom"
8
+ type: " switch" ,
9
+ key: " terms" ,
10
+ templateOptions: {
11
+ label: " Terms and Conditions" ,
12
+ theme: " custom"
13
13
}
14
14
}
15
15
```
19
19
#### templateOptions.label _ : string_
20
20
21
21
#### templateOptions.theme _ : string_
22
+
23
+ #### templateOptions.disabled _ : boolean_
Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ textarea
25
25
26
26
#### templateOptions.theme * : string*
27
27
28
+ #### templateOptions.disabled _ : boolean_
29
+
28
30
#### templateOptions.rows * : integer*
29
31
30
32
Number of rows
You can’t perform that action at this time.
0 commit comments