Free and Open source Web Builder Framework. Next generation tool for building templates without coding
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1.1 KiB

getId

Get page id

Returns String

getName

Get page name

Returns String

setName

Update page name

Parameters

Examples

page.setName('New name');

getAllFrames

Get all frames

Examples

const arrayOfFrames = page.getAllFrames();

Returns Array<Frame>

getMainFrame

Get the first frame of the page (identified always as the main one)

Examples

const mainFrame = page.getMainFrame();

Returns Frame

getMainComponent

Get the root component (usually is the wrapper component) from the main frame

Examples

const rootComponent = page.getMainComponent();
console.log(rootComponent.toHTML());

Returns Component