DeleteButton

A wrapper around the MUI Button component. Connects the click event to the removeRow method of the data object in the nearest DataObjectProvider. A default start icon and text is also set, but can be overridden with the button props.

By default, the button will delete the current row of the data object. To delete a specific row, pass the index of the row to the index property of the button.

The loading property of the button will be set to true while the delete request is pending.

For more information, see the MUI documentation.

Last updated

Was this helpful?