harmony 鸿蒙Universal Events
Universal Events
Different from private events, universal events can be bound to most components.
| Name | Parameter | Description | 
|---|---|---|
| click | - | Triggered when the component is clicked. | 
| longpress | - | Triggered when the component is long pressed. | 
| swipe5+ | SwipeEvent | Triggered when a user quickly swipes on the component. | 
Table 1 SwipeEvent (inherited from BaseEvent)
| Attribute | Type | Description | 
|---|---|---|
| direction | string | Swiping 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)
                        
                            0
                        
                        
                             赞
                        
                    
                    
                - 所属分类: 后端技术
 - 本文标签:
 
热门推荐
- 
                        2、 - 优质文章
 - 
                        3、 gate.io
 - 
                        7、 openharmony
 - 
                        9、 golang