Skip to content

Undocumented attributes - mat-subheader, mat-line, mat-list-icon #18606

@akunaatrium

Description

@akunaatrium

I am looking at the example source code of List component on this page: https://material.angular.io/components/list/examples and am a bit confused as to where some of the used attributes come from.

The example looks like this:

<mat-list>
  <h3 mat-subheader>Folders</h3>
  <mat-list-item *ngFor="let folder of folders">
    <mat-icon mat-list-icon>folder</mat-icon>
    <h4 mat-line>{{folder.name}}</h4>
    <p mat-line> {{folder.updated | date}} </p>
  </mat-list-item>
  <mat-divider></mat-divider>
  <h3 mat-subheader>Notes</h3>
  <mat-list-item *ngFor="let note of notes">
    <mat-icon mat-list-icon>note</mat-icon>
    <h4 mat-line>{{note.name}}</h4>
    <p mat-line> {{note.updated | date}} </p>
  </mat-list-item>
</mat-list>

I can't find documentation about the mat-subheader attribute used in the example, as well as mat-line and mat-list-icon. Is there any? I just started to use Angular, so I could as well be overlooking something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions