openharmony 鸿蒙 js-lite-common-events

2025-06-12 浏览 (1)

Universal Events

Different from private events, universal events can be bound to most components.

NameParameterDescription
click-Triggered when the component is clicked.
longpress-Triggered when the component is long pressed.
swipe5+SwipeEventTriggered when a user quickly swipes on the component.

SwipeEvent (inherited from BaseEvent)

AttributeTypeDescription
directionstringSwiping direction. The value can be one of the following:
- left: Swipe left.
- right: Swipe right.
- up: Swipe up.
- down: Swipe down.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙JavaScript-compatible Web-like Development Paradigm (ArkUI.Lite)

harmony 鸿蒙Universal Attributes

harmony 鸿蒙Universal Styles

harmony 鸿蒙chart

harmony 鸿蒙image-animator

harmony 鸿蒙image

harmony 鸿蒙input

harmony 鸿蒙marquee

harmony 鸿蒙picker-view

harmony 鸿蒙progress

  • 所属分类: 后端技术
  • 本文标签: 软件 鸿蒙
  • 版权声明: 本文链接 https://seaxiang.com/blog/9sude5