Skip to main content

Type Alias: OpenApiDeleteButtonProps

OpenApiDeleteButtonProps = object

Defined in: detail/OpenApiDeleteButton.tsx:11

Properties​

label?​

optional label?: string

Defined in: detail/OpenApiDeleteButton.tsx:21

Button label. Defaults to "Delete".


onSuccess?​

optional onSuccess?: (data) => void

Defined in: detail/OpenApiDeleteButton.tsx:19

Called with the response body after the record is deleted.

Parameters​

ParameterType
dataunknown

Returns​

void


operationId​

operationId: string

Defined in: detail/OpenApiDeleteButton.tsx:13

operationId of the DELETE operation.


params?​

optional params?: OperationParams

Defined in: detail/OpenApiDeleteButton.tsx:15

Path and query params, e.g. the id of the record to delete.


recordName?​

optional recordName?: string

Defined in: detail/OpenApiDeleteButton.tsx:17

Names the record in the confirmation title ("Delete Ana Silva?").