DeleteColumn

Shows a delete button that will prompt the individual for confirmation before calling the click handler.

Example

<DeleteColumn @click="onDelete" />

Properties

This column provides default values for the following standard properties:

  • name
  • formatComponent
  • headerClass
  • itemClass
  • width

disableConfirmation

Type: boolean
Default: false

Disables the normal confirmation message displayed before calling the click handler.

rowDisabled

Type: (row: Record<string, unknown>, grid: IGridState) => boolean
Optional

An optional callback that will be used to determine if the delete button is disabled for the specified row.

onClick

Type: (key: string, grid: IGridState) => (void | Promise<void>)
Optional

Called when the delete button has been clicked and the confirmation has been approved. If a Promise is returned then the button will remain disabled until the Promise is resolved.