harmony 鸿蒙Popup Overview
Popup Overview
Popups are small windows that provide users with additional information or guidance. They are commonly used in scenarios such as screen recording and tooltips.
When to Use
API | Use Case |
---|---|
Popup | Used to display a hint for a specific component, for example, a tooltip when a question mark is clicked. |
Global popup independent of UI components (openPopup) | Used to display a hint in scenarios where UI components cannot be directly accessed, for example, in event callbacks. |
Constraints
- Popups can be displayed only after the page is fully built. Setting the show property to true during page construction may result in issues with the popup’s position and shape.
- When using openPopup, you need to provide valid TargetInfo. Otherwise, the menu won’t display correctly.
- For details about other specifications, see Popup Control and openPopup .
你可能感兴趣的鸿蒙文章
harmony 鸿蒙Atomic Service Full Screen Launch Component (FullScreenLaunchComponent)
harmony 鸿蒙Arc Button (ArcButton)
harmony 鸿蒙Frame Animation (ohos.animator)
harmony 鸿蒙Implementing Property Animation
0
赞
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦