VaDelete
VaDelete is a button for all resource deletion actions. It comes with a confirmation dialog.
Mixinler
Properties
| Property |
Type |
Description |
| item |
string |
The element added to the button. |
| icon |
boolean |
If true, shows the key with the icon only. |
| iconSize |
string |
x-small, small, default, large, x-large |
| query |
object |
Query string params |
| color |
string, object |
Customizable background or text color based on text prop value. |
| redirect |
boolean |
Redirect to source list after successful deletion. If the current page source is deleted, the default redirect is active. |
| disableDelete |
boolean |
Disables delete action. |
Events
| Event |
Description |
| click |
Triggered on click, send the relevant item if available. |
| delete |
Custom delete action if item does not exist. It is used for the bulk delete button, which has its own special logic. |
| deleted |
Triggered after successful deletion of the source element. |