EditListPage Component ReferenceListSelector Component ReferencePage Component ReferenceListPage Component Referencetml`
<EditListPage sVar=myDataSelectorInputSv>
...
</EditListPage>
`
On wide devices or windows, the EditListPage component displays a scrollable, editable list (an EditListSelector 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 EditListPage component renders a Page. On wide devices, the Page contains an EditListSelector component and a separate <div> the EditListPage children that form the content area. On narrow devices, Page contains either the EditListSelector component or the content area depending on which is currently being displayed.
The EditListPage component requires a sVar attribute which must have a Data selector input state variable.
The EditListPage component is similar to the ListPage component but it uses an EditListSelector component instead of a ListSelector component. This provides a user-editable single-level list instead of a non-editable single or two-level accordion list.
EditListPage component accepts the standard attributes.onAdd (optional)sVar state variable's options.sVar state variable.sVar state variable's updateOptionData() method if any data has changed from the previously selected option.sVar state variable by relying on page Model computation functions.onDelete (optional)value of the option to be deleted. It should delete the option associated with the value from the sVar state variable and set a new selected option, if required. If no options are left, it should do what's required. onSort (optional)sVar state variable's options in a standard order. If not present or falsey, the 'Sort' button is not shown.showClickThru (optional)showClickThru to true allows the user to browse and click before editing the data.sVar (required)title (optional)These methods are intended to be used by parent components to dynamically change the properties of the rendered components without re-rendering.
All template children are included as the Page component children. If any child is a PageCol component, then all children must be PageCol components.
EditListPage component will render a Page component containing an EditListSelector component and a <div> for the content area.EditListPage component will render a Page component containing either an EditListSelector 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 EditListPage component's children.<div> will have a CSS class name with the string listPage_contents.By default:
EditListSelector component will appear to the left of the content area.