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/__CreatePage.md.
Lynx
  • English
  • __CreatePage

    Introduction

    Creates a PageElement object.

    Syntax

    __CreatePage(componentID: string, cssID: number, info: Record<string, any>|null|undefined) : Element;

    Parameters

    KeyDescription
    componentIDThe componentID assigned to the PageElement by the frontend framework, which is a case-sensitive string. The PageElement is a special type of ComponentElement that will be detailed later regarding the role of componentID.
    cssIDThe CSSFragment ID, which is a number.
    infoAdditional information required when creating the PageElement; this parameter can be omitted.

    Return Value

    Returns the PageElement.

    Example

    The frontend framework can create a PageElement in the following way.

    // main-thread.js
    let page = __CreatePage('0', 0, {});
    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.