Modifiable List

Options

Insert the list by options prop.

<>
	<ModifiableList options={["Name","Age"]} />
</>

Add button label

Click on the "cancel" button to see 3rd button. Change label of 3rd button by addButtonLabel prop.


<>
	<ModifiableList options={["Name","Age"]} addButtonLabel="Custom button label" />
</>

API

import ModifiableList from "erxes-ui/lib/components/ModifiableList";
  • required prop
NAMETYPEDEFAULTDESCRIPTION
options*string[]Display options on start
addButtonLabelstring"Add an option"Change 3rd button label
onChangeOptionfunctionDefine function that runs when delete icon clicked

Was this page helpful?