Ionic4项目中我们可以使用Ionic4列表项组件ion-item-options对项目进行布局。 ion-item-options官方文档地址:https://ionicframework.com/docs/api/item-optionsThe option buttons for an ion-item-sliding
. These buttons can be placed either on the start or end side.
You can combine the ionSwipe
event plus the expandable
directive to create a full swipe action for the item.
Side |
Position |
Swipe direction |
start |
To the left of the content in LTR, and to the right in RTL. |
From left to right in LTR, and from right to left in RTL. |
end |
To the right of the content in LTR, and to the left in RTL. |
From right to left in LTR, and from left to right in RTL. |