PageNodeInfo (System API)
PageNodeInfo defines the page node information used for auto-fill.
NOTE
The initial APIs of this module are supported since API version 11. 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.
Attributes
System capability: SystemCapability.Ability.AbilityRuntime.AbilityCore
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| id | number | No | No | ID of the page node. |
| depth | number | No | No | Depth of the page node, in px. |
| autoFillType | AutoFillType | No | No | Type of the element to be automatically filled in. |
| tag | string | No | No | Tag of the page node. |
| value | string | No | No | Value of the page node. |
| placeholder | string | No | Yes | Placeholder of the page node. |
| passwordRules | string | No | Yes | Rules for generating passwords. |
| enableAutoFill | boolean | No | No | Status of the auto-fill feature. true if enabled, false otherwise. |
| rect12+ | AutoFillRect | No | No | Coordinates, width, and height of the page node. |
| isFocus12+ | boolean | No | No | Whether the page node has focus. true if the page node has focus, false otherwise. |
| metadata12+ | string | No | Yes | Metadata of the page node. |