DeleteAction
Installation
import { DeleteAction } from 'uxp/components';Signature
const DeleteAction: React.FunctionComponent<DeleteActionProps>Examples
Basic usage with button
```tsx
<DeleteAction
model="Location.Location"
objectKey={locationKey}
canHide={true}
onSuccess={(action) => {
if (action === 'delete') {
navigate('/locations');
}
}}
>
{(handleDelete) => (
<Button onClick={handleDelete}>Delete Location</Button>
)}
</DeleteAction>Properties
Name
Type
Mandatory
Default Value
Example Value
Related Types
Last updated