返回介绍

Ionic4 列表项组件 ion-item-options

发布于 2019-11-22 18:04:17 字数 2027 浏览 1034 评论 0 收藏 0

Ionic4项目中我们可以使用Ionic4列表项组件ion-item-options对项目进行布局。

ion-item-options官方文档地址:https://ionicframework.com/docs/api/item-options

The 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 description

SidePositionSwipe direction
startTo 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.
endTo 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.

ion-item-options 属性(Properties)

side

Description

The side the option button should be on. Possible values: "start" and "end". If you have multiple ion-item-options, a side must be provided for each.

Attributeside
Type"end" | "start"
Default'end'

ion-item-options 事件(Events)

NameDescription
ionSwipeEmitted when the item has been fully swiped.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文