Developer Docs - Obsidian - DeleteColumn
Shows a delete button that will prompt the individual for confirmation before calling the click handler.
Example
Properties
This column provides default values for the following standard properties:
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.