react-easy-edit
  • ➡️Getting started
  • 🔥Migration Guide to v2.0.0
  • 📖Props
  • 👀Examples
    • Auto Cancelling
    • Auto Submitting
    • Button Positioning
    • Custom Buttons 🔥
    • Custom Display Component
    • Custom Input Component
    • Preventing Edit
    • OnBlur
    • Enable the Delete button 🔥
    • Toggle edit mode for multiple components 🔥
  • 👾Styling
  • 🆗Validation
  • 🤝Contribute
Powered by GitBook
On this page
  1. Examples

Enable the Delete button 🔥

PreviousOnBlurNextToggle edit mode for multiple components 🔥

Last updated 4 years ago

There is a third button that's hidden by default on all EasyEdit components and that is the Delete button which removes the selected component from the DOM. In order to activate it, you will need to set the hideDeleteButton prop to true . You can also change the label of it and add extra CSS classes or a custom React component that you might need for rendering it.

👀