__CreatePage

Introduction

Creates a PageElement object.

Syntax

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

Parameters

Key Description
componentID The 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.
cssID The CSSFragment ID, which is a number.
info Additional 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.