harmony 鸿蒙AutoFillPopupConfig (System API)
AutoFillPopupConfig (System API)
The AutoFillPopupConfig module describes the size and position information of an auto-fill pop-up.
NOTE
The initial APIs of this module are supported since API version 12. Newly added APIs will be marked with a superscript to indicate their earliest API version.
The APIs provided by this module are system APIs.
The APIs of this module can be used only in the stage model.
Modules to Import
import { autoFillManager } from '@kit.AbilityKit';
AutoFillPopupConfig
System API: This is a system API.
System capability: SystemCapability.Ability.AbilityRuntime.AbilityCore
Name | Type | Mandatory | Description |
---|---|---|---|
popupSize | PopupSize | No | Width and height of the auto-fill pop-up. If this parameter is not set, the width and height are not updated. |
placement | PopupPlacement | No | Position of the auto-fill pop-up. If this parameter is not set, the position is not updated. |
PopupSize
Describes the width and height of the auto-fill pop-up.
System API: This is a system API.
System capability: SystemCapability.Ability.AbilityRuntime.AbilityCore
Name | Type | Mandatory | Description |
---|---|---|---|
width | number | Yes | Width of the auto-fill pop-up. |
height | number | Yes | Height of the auto-fill pop-up. |
PopupPlacement
Enumerates the positions of an auto-fill pop-up.
System API: This is a system API.
System capability: SystemCapability.Ability.AbilityRuntime.AbilityCore
Name | Value | Description |
---|---|---|
LEFT | 0 | The popup is on the left of the component and aligned with the left center of the component. |
RIGHT | 1 | The popup is on the right of the component and aligned with the right center of the component. |
TOP | 2 | The popup is at the top of the component and aligned with the top center of the component. |
BOTTOM | 3 | The popup is at the bottom of the component and aligned with the bottom center of the component. |
TOP_LEFT | 4 | The popup is at the top of the component and aligned with the left edge of the component. |
TOP_RIGHT | 5 | The popup is at the top of the component and aligned with the right edge of the component. |
BOTTOM_LEFT | 6 | The popup is at the bottom of the component and aligned with the left edge of the component. |
BOTTOM_RIGHT | 7 | The popup is at the bottom of the component and aligned with the right edge of the component. |
LEFT_TOP | 8 | The popup is on the left of the component and aligned with the top edge of the component. |
LEFT_BOTTOM | 9 | The popup is on the left of the component and aligned with the bottom edge of the component. |
RIGHT_TOP | 10 | The popup is on the right of the component and aligned with the top edge of the component. |
RIGHT_BOTTOM | 11 | The popup is on the right of the component and aligned with the bottom edge of the component. |
NONE | 12 | The position is unspecified. |
你可能感兴趣的鸿蒙文章
harmony 鸿蒙AbilityAccessControl
harmony 鸿蒙OH_NativeBundle_ApplicationInfo
harmony 鸿蒙OH_NativeBundle_ElementName
- 所属分类: 后端技术
- 本文标签:
热门推荐
-
2、 - 优质文章
-
3、 gate.io
-
8、 golang
-
9、 openharmony
-
10、 Vue中input框自动聚焦