• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# AutoFillPopupConfig (System API)
2
3The module describes the size and position information of an auto-fill pop-up.
4
5> **NOTE**
6>
7> 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.
8> The APIs provided by this module are system APIs.
9> The APIs of this module can be used only in the stage model.
10
11## Modules to Import
12
13```ts
14import { autoFillManager } from '@kit.AbilityKit';
15```
16
17## AutoFillPopupConfig
18
19**System API**: This is a system API.
20
21**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore
22
23| Name   | Type          | Read-Only| Optional| Description                                      |
24| --------- | -------------- | ---- | ---- | ------------------------------------------ |
25| popupSize | [PopupSize](#popupsize)      | No  | Yes | Width and height of the auto-fill pop-up. If this parameter is not set, the width and height are not updated.|
26| placement | [PopupPlacement](#popupplacement) | No  | Yes | Position of the auto-fill pop-up. If this parameter is not set, the position is not updated.|
27
28## PopupSize
29
30Describes the width and height of the auto-fill pop-up.
31
32**System API**: This is a system API.
33
34**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore
35
36| Name| Type  | Read-Only| Optional| Description           |
37| ------ | ------ | ---- | ---- | --------------- |
38| width  | number | No  | No  | Width of the auto-fill pop-up.|
39| height | number | No  | No  | Height of the auto-fill pop-up.|
40
41## PopupPlacement
42
43Enumerates the positions of an auto-fill pop-up.
44
45**System API**: This is a system API.
46
47**System capability**: SystemCapability.Ability.AbilityRuntime.AbilityCore
48
49| Name        | Value | Description                              |
50| ------------ | --- | --------------------------------- |
51| LEFT         |  0  |The popup is on the left of the component and aligned with the left center of the component.|
52| RIGHT        |  1  |The popup is on the right of the component and aligned with the right center of the component.|
53| TOP          |  2  |The popup is at the top of the component and aligned with the top center of the component.|
54| BOTTOM       |  3  |The popup is at the bottom of the component and aligned with the bottom center of the component.|
55| TOP_LEFT     |  4  |The popup is at the top of the component and aligned with the left edge of the component.|
56| TOP_RIGHT    |  5  |The popup is at the top of the component and aligned with the right edge of the component.|
57| BOTTOM_LEFT  |  6  |The popup is at the bottom of the component and aligned with the left edge of the component.|
58| BOTTOM_RIGHT |  7  |The popup is at the bottom of the component and aligned with the right edge of the component.|
59| LEFT_TOP     |  8  |The popup is on the left of the component and aligned with the top edge of the component.|
60| LEFT_BOTTOM  |  9  |The popup is on the left of the component and aligned with the bottom edge of the component.|
61| RIGHT_TOP    |  10 |The popup is on the right of the component and aligned with the top edge of the component.|
62| RIGHT_BOTTOM |  11 |The popup is on the right of the component and aligned with the bottom edge of the component.|
63| NONE         |  12 |The position is unspecified.                               |
64