@@ -34,7 +34,7 @@ element in an `<md-list-item>`.
34
34
``` html
35
35
<md-nav-list >
36
36
<md-list-item *ngFor =" let link of links" >
37
- <a md-line href =" ..." >{{ link }}</a >
37
+ <a mdLine href =" ..." >{{ link }}</a >
38
38
<button md-icon-button (click) =" showInfo(link)" >
39
39
<md-icon >info</md-icon >
40
40
</button >
@@ -43,16 +43,16 @@ element in an `<md-list-item>`.
43
43
```
44
44
45
45
### Multi-line lists
46
- For lists that require multiple lines per item, annotate each line with an ` md-line ` attribute.
46
+ For lists that require multiple lines per item, annotate each line with an ` mdLine ` attribute.
47
47
Whichever heading tag is appropriate for your DOM hierarchy should be used (not necessarily ` <h3> `
48
48
as shown in the example).
49
49
50
50
``` html
51
51
<!-- two line list -->
52
52
<md-list >
53
53
<md-list-item *ngFor =" let message of messages" >
54
- <h3 md-line > {{message.from}} </h3 >
55
- <p md-line >
54
+ <h3 mdLine > {{message.from}} </h3 >
55
+ <p mdLine >
56
56
<span > {{message.subject}} </span >
57
57
<span class =" demo-2" > -- {{message.content}} </span >
58
58
</p >
@@ -62,24 +62,24 @@ as shown in the example).
62
62
<!-- three line list -->
63
63
<md-list >
64
64
<md-list-item *ngFor =" let message of messages" >
65
- <h3 md-line > {{message.from}} </h3 >
66
- <p md-line > {{message.subject}} </p >
67
- <p md-line class =" demo-2" > {{message.content}} </p >
65
+ <h3 mdLine > {{message.from}} </h3 >
66
+ <p mdLine > {{message.subject}} </p >
67
+ <p mdLine class =" demo-2" > {{message.content}} </p >
68
68
</md-list-item >
69
69
</md-list >
70
70
```
71
71
72
72
### Lists with icons
73
73
74
- To add an icon to your list item, use the ` md-list-icon ` attribute.
74
+ To add an icon to your list item, use the ` mdListIcon ` attribute.
75
75
76
76
77
77
``` html
78
78
<md-list >
79
79
<md-list-item *ngFor =" let message of messages" >
80
- <md-icon md-list-icon >folder</md-icon >
81
- <h3 md-line > {{message.from}} </h3 >
82
- <p md-line >
80
+ <md-icon mdListIcon >folder</md-icon >
81
+ <h3 mdLine > {{message.from}} </h3 >
82
+ <p mdLine >
83
83
<span > {{message.subject}} </span >
84
84
<span class =" demo-2" > -- {{message.content}} </span >
85
85
</p >
@@ -89,14 +89,14 @@ To add an icon to your list item, use the `md-list-icon` attribute.
89
89
90
90
### Lists with avatars
91
91
92
- To include an avatar image, add an image tag with an ` md-list-avatar ` attribute.
92
+ To include an avatar image, add an image tag with an ` mdListAvatar ` attribute.
93
93
94
94
``` html
95
95
<md-list >
96
96
<md-list-item *ngFor =" let message of messages" >
97
- <img md-list-avatar src =" ..." alt =" ..." >
98
- <h3 md-line > {{message.from}} </h3 >
99
- <p md-line >
97
+ <img mdListAvatar src =" ..." alt =" ..." >
98
+ <h3 mdLine > {{message.from}} </h3 >
99
+ <p mdLine >
100
100
<span > {{message.subject}} </span >
101
101
<span class =" demo-2" > -- {{message.content}} </span >
102
102
</p >
@@ -121,23 +121,23 @@ to the main `md-list` tag.
121
121
122
122
### Lists with multiple sections
123
123
124
- Subheader can be added to a list by annotating a heading tag with an ` md-subheader ` attribute.
124
+ Subheader can be added to a list by annotating a heading tag with an ` mdSubheader ` attribute.
125
125
To add a divider, use ` <md-divider> ` .
126
126
127
127
``` html
128
128
<md-list >
129
- <h3 md-subheader >Folders</h3 >
129
+ <h3 mdSubheader >Folders</h3 >
130
130
<md-list-item *ngFor =" let folder of folders" >
131
- <md-icon md-list-icon >folder</md-icon >
132
- <h4 md-line >{{folder.name}}</h4 >
133
- <p md-line class =" demo-2" > {{folder.updated}} </p >
131
+ <md-icon mdListIcon >folder</md-icon >
132
+ <h4 mdLine >{{folder.name}}</h4 >
133
+ <p mdLine class =" demo-2" > {{folder.updated}} </p >
134
134
</md-list-item >
135
135
<md-divider ></md-divider >
136
- <h3 md-subheader >Notes</h3 >
136
+ <h3 mdSubheader >Notes</h3 >
137
137
<md-list-item *ngFor =" let note of notes" >
138
- <md-icon md-list-icon >note</md-icon >
139
- <h4 md-line >{{note.name}}</h4 >
140
- <p md-line class =" demo-2" > {{note.updated}} </p >
138
+ <md-icon mdListIcon >note</md-icon >
139
+ <h4 mdLine >{{note.name}}</h4 >
140
+ <p mdLine class =" demo-2" > {{note.updated}} </p >
141
141
</md-list-item >
142
142
</md-list >
143
143
```
0 commit comments