__NextElement

Introduction

Returns the node that immediately follows the specified Element node in its parent's list of child nodes. If the specified node is the last node, it returns undefined.

Syntax

__NextElement(element: Element) : Element|undefined;

Parameters

Key Description
element Any Element object.

Return Value

Returns the node that immediately follows the current Element object in its parent's list of child nodes. If the current Element is the last node, it returns undefined.

Example

The frontend framework can retrieve the next node of a specified Element as follows.

// main-thread.js
let element = __CreateElement('view', 0, {});

let next = __NextElement(element);
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.