Skip to main content

Modifiable List

Options#

Insert the list by options prop.

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

Add button label#

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

  • Name
  • Age
<>
<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
Last updated on by enkhzule