ListPage Component ReferenceListSelector Component ReferencePage Component ReferenceEditListPage Component Referencetml`
<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.
ListPage component accepts the standard attributes.listTitleonClickfn(value) where value is the value associated with the selected option. The displayed list reflects the newly selected option. The function may subsequently override the selection by setting calling the setValue() method if required.options (required)optionsoptions property, it must contain an array containing strings, numbers, or objects containing both a text property and a value property.texttext is omitted, then value coerced to a string is used.value The value of the state variable if this option is selected.
If an element is a number, the displayed text is the number coerced to a string, and the value is the element. If an element is a string, it is used for both the displayed text and value.
valueoptions array.showClickThrushowClickThru to true allows the user to browse and click before editing the data.showSelectiontimeouttimeout milliseconds.valuetitleThese methods are intended to be used by parent components to dynamically change the properties of the rendered components without re-rendering.
setValue()setValue(value)
Sets the rendered element's value.
valueAll template children are included as the Page component children. If any child is a PageCol component, then all children must be PageCol components.
ListPage component will render a Page component containing an ListSelector component and a <div> for the content area.ListPage component will render a Page component containing either an ListSelector component or a <div> for the content area with a header bar <div> for navigation back to the list.sv.nav_style is 'slide'. Otherwise, it is considered to be wide.<div> contain the ListPage component's children.<div> will have a CSS class name with the string listPage_contents.By default:
ListSelector component will appear to the left of the content area.