ionic tutorial - Basic list item syntax in ionic framework - ionic framework - ionic 2 - ionic creator - ionic development
Almost every application has some kind of a list. Ionic has it's own build-in ready-to-go list item CSS declarations to make it easy to do lists inside your application. You can either use HTML elements and declare a class for the or use the directive ion-list to make them. Example of a directive is at the bottom.
Basic list item CSS syntax:
List with dividers:
List items with icons:
You can also set icons on both sides of the items with the following syntax:
An list item with button or buttons can be created like this:
It's also possible to create list items with avatars, thumbnails and inset which will create padding around the list items. Ionic also handles setting icons etc in list items by setting padding accordingly to the list items. Ionic also has it's own directives for checkboxes, radio buttons etc.
Example