A React component that can be used in Salesforce for lookups with some more customizations possible.
Props:
prop name | type | description | required? |
---|---|---|---|
disabled |
boolean | if true, look up disabled for selection | no |
data |
array | list of menu items, containing an "id", "label", "subtitle", "type" | no |
label |
string | label for the lookup | no |
placeholder |
string | placeholder text inside the search box | no |
numOfMenuItemsDisplayed |
number | limiting count to restrict the number of items shown in the selection menu | |
menuItemVisibleLengthForScroll |
number | number of items shown in one scrollable view(has to be one of 5, 7 or 10) | no |
onChangeSelection |
func | callback function that notifies the current selection | no |