Confirm Dialog

A confirm dialog is often used if you want the user to verify or accept something. When a confirm dialog pops up, the user will have to click either "OK" or "Cancel" to proceed.
Looking for a commercial license ? Keep your source code proprietary and Buy a Commercial License Today!

All of AlertifyJS animation/transition effects are disabled due to user preference that the system minimizes the amount of animation or motion it uses. See prefers-reduced-motion CSS media feature.

setting ( key, value )


Description: Gets or Sets dialog settings/options

Parameters:

@key {String or Object} A string specifying a setting/option key or object holding key/value pairs.

@value {Optional} The value associated with the key (in case it was a string).

 // set a single setting/option
 alertify.confirm().setting('modal', false).show();
 // set multiple settings/options
 alertify.confirm().setting({'modal':false, 'closable':false});
 // get a setting/option value
 var isMaximizable = alertify.confirm().get('maximizable');
  

Remarks

A separate .get() and .set() aliases are also available.