Page Component Reference

Table of Contents


Introduction

Syntax

tml`
	<Page>
		...
	</Page>
`

The Page component creates a scrollable container for page content. Content can be visually grouped into rectangular Cards, if desired. Using the PageCol component, the content can be organized into columns that display as two columns on wide devices or one column on narrow devices. If PageCol is used then the Page must have exactly two PageCol children that contain the page content.

When the page is hidden, the Page remembers its scroll position and restores it when the page is shown again.

Attributes

Instance methods

These methods are intended to be used by parent components to dynamically change the properties of the rendered components without re-rendering.

Inherited methods

Children

All template children are included as the Page component children. A Page must have either no PageCol children or exactly two children, both PageCol components; otherwise an assertion fails (Page Component: Illegal children).

DOM element properties

Styling

By default, the Page <div>: