A list can contain a header to display a title at the top of the list. The header is created by adding the component ion-list-header as the child of the ion-list. Items in the list can be separated using the component ion-item-divider.
In Listing below, a title is added to the list and a divider separates two items.
Grouping of Items
If a list contains a lot of items, it’s better to group those items for users to view and find them easily. A typical example is the contact list, which is usually grouped by the first character of each contact’s first name. Grouping
of items can be done using the component ion-item-group. Listing below an example of the simple contacts list. We use the component ion-item-divider to show the name of each group. We don’t need to use the component ion-list when grouping items.
Ionic 2 provides over 700 ready-to-use icons. These icons can be displayed using the component ion-icon with the name of the icon. For each icon, there may be three variations for different platforms, that is, iOS, iOSOutline, and Material Design. For example, the icon book has three variations with names ios-book, ios-book-outline, and md-book.
Avatars create circular images. They are typically used to display users’ profile images. In Ionic 2, avatars are created by using the component ionavatar to wrap img elements.
Thumbnails are rectangular images larger than avatars. In Ionic 2, thumbnails are created by using the component ion-thumnail to wrap img elements.