能监听List的swipeAction添加侧滑view出现的时候事件

Column({ space: 10 }) {
  List({ space: 10 }) {
    ForEach(this.getTaskList, (item: TaskModel) => { 
      ListItem() {
        this.TaskItem(item)  
      }
      .swipeAction({end: this.DeleteButton(item.taskId)})
    }, (item: TaskModel) => JSON.stringify(item))  
  }
  .width('100%')  
  .height('100%')
  .alignListItem(ListItemAlign.Center)}
  .margin({top: 5, bottom: 5})
}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.

怎么才能监听 swipeAction 侧滑出现view时候的事件


List
swipeAction
侧滑出现view
监听事件
2024-01-11 17:53:00
浏览
已于2024-1-11 17:56:59修改
收藏 0
回答 0
相关问题
HarmonyOS 事件
648浏览 • 1回复 待解决
HarmonyOS 关于返回监听
498浏览 • 1回复 待解决
HarmonyOS 返回及返回无法拦截事件
1303浏览 • 1回复 待解决
HarmonyOS 返回事件拦截与绑定
2357浏览 • 1回复 待解决
HarmonyOS 键盘收起事件监听到么
836浏览 • 1回复 待解决
HarmonyOS 如何禁止系统返回
483浏览 • 1回复 待解决
删除功能列表有哪些?
1560浏览 • 1回复 待解决
HarmonyOS 怎么禁止
756浏览 • 1回复 待解决
HarmonyOS 怎么让listitem按钮失效
552浏览 • 1回复 待解决