Setting Up the Page Layout
Next, we define the page layout of the Users tab.
Steps:
- Copy or enter the text from the right into the file
The variables are:
- 'target'
- gives a name to the page for TE to be able to refer to it later if we need it to
- 'rasieToTop'
- specifies whether you want the page to be loaded on top of others. Currently this option only takes in the "" value. By default, all new pages are loaded at the top.
- 'windowStage'
- specifies where the page loads to
- 'windowType'
- specifies if it is closable or not
- the options are NORMAL and CAN_NOT_CLOSE
- 'content::type'
- specifies what kind of page we want
- the types are the same as those defined on the previous page
- 'content::direction'
- specifies what direction to split the page (used only in the case of splitPanes)
- the options are "h" or "v"
- 'content::splitPercent'
- specifies what percent you want the split
- 'content::allowResize'
- specifies if we want to allow the individual panels to be resizable
- 'content::panelA' and 'content::panelB'
- will define the two panels in the splitPane (covered in the next page)
Finally, the loadNewPageLayout command loads the newly defined page to the specified stage.