List

The list control is built up by a mat-list element and a number of mat-list-items. The markup for this looks like:

<mat-list>
<mat-list-item>Item1</mat-list-item>
<mat-list-item>Item1</mat-list-item>
</mat-list>

That's it, that is all there is to it. For your effort, you are awarded with a list that looks like this:

A list can, of course, be a lot more complicated, containing links, icons, and more. A more interesting example may look like this:

I think you get the idea, there are list items and I can put pretty much put anything I want in them. To read more about the capabilities, here is the link to the list documentation: https://material.angular.io/components/list/overview.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset