We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe113eb commit 1a854e7Copy full SHA for 1a854e7
src/lib/list/list.md
@@ -69,8 +69,27 @@ as shown in the example).
69
</md-list>
70
```
71
72
+### Lists with icons
73
+
74
+To add an icon to your list item, use the `md-list-icon` attribute.
75
76
77
+```html
78
+<md-list>
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>
83
+ <span> {{message.subject}} </span>
84
+ <span class="demo-2"> -- {{message.content}} </span>
85
+ </p>
86
+ </md-list-item>
87
+</md-list>
88
+```
89
90
### Lists with avatars
-To include an avatar, add an image tag with an `md-list-avatar` attribute.
91
92
+To include an avatar image, add an image tag with an `md-list-avatar` attribute.
93
94
```html
95
<md-list>
0 commit comments