メインコンテンツまでスキップ
バージョン: v8

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​

Descriptiontrueの場合、リストの周囲に余白ができ、角が丸くなる。
Attributeinset
Typeboolean
Defaultfalse

lines​

Descriptionすべてのアイテムで、下のボーダーをどのように表示させるか。
Attributelines
Type"full" | "inset" | "none" | undefined
Defaultundefined

mode​

Descriptionmodeは、どのプラットフォームのスタイルを使用するかを決定します。

This is a virtual property that is set once during initialization and will not update if you change its value after the initial render.
Attributemode
Type"ios" | "md"
Defaultundefined

Events​

No events available for this component.

Methods​

closeSlidingItems​

Descriptionリスト内で ion-item-sliding が使用されている場合、このメソッドは開いているスライドアイテムを閉じる。 実際に ion-item-sliding が閉じられた場合は true を返します。
SignaturecloseSlidingItems() => 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.