ListPage Component Reference

Table of Contents


Introduction

Syntax

tml`
	<ListPage options=${...}>
		...
	</ListPage>
`

On wide devices or windows, the ListPage component displays a scrollable list that can group items into accordion segments (an ListSelector component) on the left and an area for the list item content on the right. The selection in the list controls the values displayed in the content area. On narrow devices (Nav style: slide), the list and content are two separate pages with navigation elements to move back and forth.

The ListPage component renders a Page. On wide devices, the Page contains an ListSelector component and a separate <div> the ListPage children that form the content area. On narrow devices, Page contains either the ListSelector component or the content area depending on which is currently being displayed.

The ListPage component is similar to the EditListPage component but it uses an ListSelector component instead of a EditListSelector component. This provides a non-editable single or two-level accordion list instead of a user-editable single-level list.

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


setValue()

Syntax

setValue(value)

Sets the rendered element's value.

Parameters


Children

All template children are included as the Page component children. If any child is a PageCol component, then all children must be PageCol components.

DOM element properties

Styling

By default: