ion-list
Lists are made up of multiple rows of items which can contain text, buttons, toggles, icons, thumbnails, and much more. Lists generally contain items with similar data content, such as images and text.
Lists support several interactions including swiping items to reveal options, dragging to reorder items within the list, and deleting items.
Basic Usageâ
Inset Listâ
Adding the inset
property to a list will apply margin around the list. In ios
mode it will also add rounded corners to the list.
List Linesâ
Adding the lines
property to a list will adjust the bottom borders of all of the items in the list. Setting it to "full"
will display full width borders, "inset"
will display borders adjusted with left padding, and "none"
will show no borders. If the lines
property is set on an item in a list, that will take priority over the property on the list.
Propertiesâ
insetâ
Description | If true , the list will have margin around it and rounded corners. |
Attribute | inset |
Type | boolean |
Default | false |
linesâ
Description | How the bottom border should be displayed on all items. |
Attribute | lines |
Type | "full" īŊ "inset" īŊ "none" īŊ undefined |
Default | undefined |
modeâ
Description | The mode determines which platform styles to use. |
Attribute | mode |
Type | "ios" īŊ "md" |
Default | undefined |
Eventsâ
No events available for this component.
Methodsâ
closeSlidingItemsâ
Description | If ion-item-sliding are used inside the list, this method closes any open sliding item.Returns true if an actual ion-item-sliding is closed. |
Signature | closeSlidingItems() => Promise<boolean> |
CSS Shadow Partsâ
No CSS shadow parts available for this component.
CSS Custom Propertiesâ
No CSS custom properties available for this component.
Slotsâ
No slots available for this component.