ic-confirm - The Confirm Attribute

Summary

The ic-confirm attribute tells Intercooler to confirm the action with the user using the string of the attribute and the javascript confirm() function.

This can be useful when you want to confirm destructive operations, such as a delete.

Syntax

The value of the ic-verb attribute should be a string asking the user to confirm the given action.

This attribute may be placed on parent elements, allowing you to specify behavior across multiple elements.

Dependencies

The ic-confirm attribute has no effect on dependencies.

Example

  <button ic-post-to="/target_url" ic-confirm="Are you sure?">Click Me!</button>