For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/engine/element-api/__NextElement.md.
Lynx
  • English
  • __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

    KeyDescription
    elementAny 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.