EditListSelector Component ReferenceListPage Component Referencetml`
<EditListSelector />
`
The EditListSelector component is a Selector component that renders a <div> with a list of selectable items. The list has a header with buttons that allow editing the list, including:
The EditListSelector component must be passed an sVar attribute specifying a Selector input state variable that contains the options and the selected value. The state variable coordinates most list actions, including item selection, item addition, item deletion, and reordering of the item list.
EditListSelector component accepts the standard attributes.onAddsVar state variable's options. The function can do this asynchronously. For example, it can first ask the user for item name.onDeletevalue 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. onSortsVar state variable's options in a standard order. If not present or falsey, the 'Sort' button is not shown.onClickvalue argument which is the value associated with the clicked item. The sVar state variable is set to the clicked item's value prior to calling the onClick function.onClickThruonClickThru function is defined, all items will show a &rightChevron; symbol to indicate that there is information that will be revealed on a second click. When called, the onClickThru function should reveal any desired information.titlesVarThese methods are intended to be used by parent components to dynamically change the properties of the rendered components without re-rendering.
The EditListSelector component ignores any children.
EditListSelector component renders a <ul> element containing a <li> element for each option.EditListSelector <ul> element has a CSS class string that contains listSelector.<li> element is rendered for each option. Each <li> element has a CSS class string that contains editList_item.<li> element will have a CSS class string that contains editList_item-sel. The other will have editList_item-unsel.