openharmony 鸿蒙 js-apis-inner-application-autoFillPopupConfig-sys

2025-06-12 浏览 (1)

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

NameTypeMandatoryDescription
popupSizePopupSizeNoWidth and height of the auto-fill pop-up. If this parameter is not set, the width and height are not updated.
placementPopupPlacementNoPosition 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

NameTypeMandatoryDescription
widthnumberYesWidth of the auto-fill pop-up.
heightnumberYesHeight 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

NameValueDescription
LEFT0The popup is on the left of the component and aligned with the left center of the component.
RIGHT1The popup is on the right of the component and aligned with the right center of the component.
TOP2The popup is at the top of the component and aligned with the top center of the component.
BOTTOM3The popup is at the bottom of the component and aligned with the bottom center of the component.
TOP_LEFT4The popup is at the top of the component and aligned with the left edge of the component.
TOP_RIGHT5The popup is at the top of the component and aligned with the right edge of the component.
BOTTOM_LEFT6The popup is at the bottom of the component and aligned with the left edge of the component.
BOTTOM_RIGHT7The popup is at the bottom of the component and aligned with the right edge of the component.
LEFT_TOP8The popup is on the left of the component and aligned with the top edge of the component.
LEFT_BOTTOM9The popup is on the left of the component and aligned with the bottom edge of the component.
RIGHT_TOP10The popup is on the right of the component and aligned with the top edge of the component.
RIGHT_BOTTOM11The popup is on the right of the component and aligned with the bottom edge of the component.
NONE12The position is unspecified.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙Ability Kit

harmony 鸿蒙AbilityAccessControl

harmony 鸿蒙AbilityBase

harmony 鸿蒙AbilityBase_Element

harmony 鸿蒙AbilityRuntime

harmony 鸿蒙bundle

harmony 鸿蒙OH_NativeBundle_ApplicationInfo

harmony 鸿蒙OH_NativeBundle_ElementName

harmony 鸿蒙ability_access_control.h

harmony 鸿蒙ability_base_common.h

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