Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

General ListItem

Alan Sangma edited this page May 19, 2020 · 1 revision

Proposal

Create a general use ListItem with a structure similar to the header our Panel. PickListItem and ValueListItem can wrap the ListItem, and ListItem can be used for cases like what we need for stuff like 978 until we see that become a repeated usage, at which point we consider another wrapper.

Structure

[ start | main | end ]

main: { textLabel, textDescription }

Reasoning

PickListItem is being used as a base that ValueListItem wraps. As a result PickListItem currently has properties and functions that are not relevant to it but that are relevant to ValueListItem.

  • removable
  • disableDeselect
  • renderRemoveAction()

Also, the way that icons are set in PickListItem seems convoluted.