getElementById(id: string)
Requires:
@ray-js/ray≥0.5.10
Description
Get a page node
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | The value of the node's id attribute |
Return Value
Type: Promise<NodesRef>
Node reference object; returns null if the node does not exist
Referenced Types
interface
NodesRef| Property | Type | Description |
|---|---|---|
| Get node layout position (left, right, top, bottom, width, height) | ||
| Get node scroll position (scrollLeft, scrollTop) | ||
| Get specified fields of the node |