Skip to content
This repository was archived by the owner on Jan 22, 2018. It is now read-only.

Commit 72a94bd

Browse files
author
Kamil Kisiela
committed
docs(*): add templateOptions.disabled for all types
1 parent d4b7f13 commit 72a94bd

File tree

9 files changed

+55
-37
lines changed

9 files changed

+55
-37
lines changed

docs/types/checkbox.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
```javascript
77
{
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"
1313
}
1414
}
1515
```
@@ -19,3 +19,5 @@
1919
#### templateOptions.label _: string_
2020

2121
#### templateOptions.theme _: string_
22+
23+
#### templateOptions.disabled _: boolean_

docs/types/chips.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ md-chips
3232

3333
#### templateOptions.theme *: string*
3434

35+
#### templateOptions.disabled _: boolean_
36+
3537
#### templateOptions.placeholder *: string*
3638

3739
Placeholder text that will be forwarded to the input.

docs/types/datepicker.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
```javascript
77
{
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) {
1616
// only weekends
1717
var day = date.getDay();
1818
return day === 0 || day === 6;
@@ -27,6 +27,8 @@
2727

2828
#### templateOptions.theme _: string_
2929

30+
#### templateOptions.disabled _: boolean_
31+
3032
#### templateOptions.placeholder _: string_
3133
The date input placeholder value
3234

docs/types/input.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ Example
3030

3131
Value of md-theme directive
3232

33+
#### templateOptions.disabled _: boolean_
34+
3335
#### templateOptions.step *: number*
3436

3537
only if templateOptions.type is 'number'

docs/types/radio.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55

66
```javascript
77
{
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}
1919
]
2020
}
2121
}
@@ -27,6 +27,8 @@
2727

2828
#### templateOptions.theme _: string_
2929

30+
#### templateOptions.disabled _: boolean_
31+
3032
#### templateOptions.options _: array_
3133

3234
Array with available options

docs/types/select.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ md-select
3737

3838
#### templateOptions.theme *: string*
3939

40+
#### templateOptions.disabled _: boolean_
41+
4042
#### templateOptions.options *: array*
4143

4244
Array with available options

docs/types/slider.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55

66
```javascript
77
{
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
1616
}
1717
}
1818
```
@@ -23,6 +23,8 @@
2323

2424
#### templateOptions.theme _: string_
2525

26+
#### templateOptions.disabled _: boolean_
27+
2628
#### templateOptions.min _: number (default: 0)_
2729
The minimum value the user is allowed to pick.
2830

docs/types/switch.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55

66
```javascript
77
{
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"
1313
}
1414
}
1515
```
@@ -19,3 +19,5 @@
1919
#### templateOptions.label _: string_
2020

2121
#### templateOptions.theme _: string_
22+
23+
#### templateOptions.disabled _: boolean_

docs/types/textarea.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ textarea
2525

2626
#### templateOptions.theme *: string*
2727

28+
#### templateOptions.disabled _: boolean_
29+
2830
#### templateOptions.rows *: integer*
2931

3032
Number of rows

0 commit comments

Comments
 (0)