1.4 KiB
1.4 KiB
ConfirmAction
ConfirmAction
is a button followed by a confirmation message and button used to prevent users from performing actions they do not intend to.
Properties
Name | Type | Default | Description |
---|---|---|---|
onConfirmAction | Func |
|
The action to take upon confirming. |
[confirmMessage] | String |
Are you sure you want to do this? |
The message to display upon confirming. |
[confirmButtonText] | String |
Delete |
The confirm button text. |
[cancelButtonText] | String |
Cancel |
The cancel button text. |
[disabledMessage] | String |
Complete the form to complete this action |
The message to display when the button is disabled. |
Example
<ConfirmAction
@onConfirmAction={{ () => { console.log('Action!') } }}
@confirmMessage="Are you sure you want to delete this config?">
Delete
</ConfirmAction>
See