|
| 1 | +<div class="demo-list"> |
| 2 | + <section> |
| 3 | + <h2> Seasoning </h2> |
| 4 | + <p>Showing a non-interactive list of seasonings.</p> |
| 5 | + <mat-list role="list"> |
| 6 | + <mat-list-item *ngFor="let item of items"> {{item}} </mat-list-item> |
| 7 | + </mat-list> |
| 8 | + </section> |
| 9 | + |
| 10 | + |
| 11 | + <section> |
| 12 | + <h2>Mailbox navigation</h2> |
| 13 | + <p>Showing a navigation list with links to google search</p> |
| 14 | + <mat-nav-list> |
| 15 | + <a mat-list-item *ngFor="let link of links" |
| 16 | + href="https://www.google.com/search?q={{link.name}}"> |
| 17 | + {{link.name}} |
| 18 | + </a> |
| 19 | + </mat-nav-list> |
| 20 | + </section> |
| 21 | + |
| 22 | + <section> |
| 23 | + <h2>Messages</h2> |
| 24 | + <p> |
| 25 | + Showing a list of messages, where each message item has sender's name, sender's avatar, |
| 26 | + message subject, and content of the message. |
| 27 | + </p> |
| 28 | + <mat-list role="list"> |
| 29 | + <mat-list-item *ngFor="let message of messages"> |
| 30 | + <img mat-list-avatar [src]="message.image" [alt]="message.from"> |
| 31 | + <h3 mat-line> {{message.from}} </h3> |
| 32 | + <p mat-line> {{message.subject}} </p> |
| 33 | + <p mat-line class="demo-secondary-text"> {{message.message}} </p> |
| 34 | + </mat-list-item> |
| 35 | + </mat-list> |
| 36 | + |
| 37 | + </section> |
| 38 | + |
| 39 | + <section> |
| 40 | + <h2>Seasoning</h2> |
| 41 | + <p>Showing a non-interactive list of seasonings with dense style.</p> |
| 42 | + <mat-list dense> |
| 43 | + <mat-list-item *ngFor="let item of items"> {{item}} </mat-list-item> |
| 44 | + </mat-list> |
| 45 | + </section> |
| 46 | + |
| 47 | + <section> |
| 48 | + <h2>Folders and notes for mailbox </h2> |
| 49 | + <p>Showing a list with two sections, "folders" and "notes".</p> |
| 50 | + <mat-list role="list"> |
| 51 | + <h3 mat-subheader>Folders</h3> |
| 52 | + <mat-list-item *ngFor="let folder of folders"> |
| 53 | + <mat-icon mat-list-icon>folder</mat-icon> |
| 54 | + <h4 mat-line>{{folder.name}}</h4> |
| 55 | + <p mat-line class="demo-secondary-text"> {{folder.updated}} </p> |
| 56 | + </mat-list-item> |
| 57 | + <mat-divider></mat-divider> |
| 58 | + <h3 mat-subheader>Notes</h3> |
| 59 | + <mat-list-item *ngFor="let note of notes"> |
| 60 | + <mat-icon mat-list-icgon>note</mat-icon> |
| 61 | + <h4 mat-line>{{note.name}}</h4> |
| 62 | + <p mat-line class="demo-secondary-text"> {{note.updated}} </p> |
| 63 | + </mat-list-item> |
| 64 | + </mat-list> |
| 65 | + </section> |
| 66 | +</div> |
0 commit comments