Namespace: confirm

ix. confirm

Extends

Methods

<static> hide()

Method to hide current confirmation dialog.

<static> show(params)

Method to show a confirmation dialog.

Parameters:
Name Type Description
params ix.confirm~ConfirmSettings

Confirm dialog settings.

Example
// Define the custom confirm function
// Function can be used as custom event function for intrexx action controls (for example): myConfirm(e);
function myConfirm(e) {
  var retDeferred = $.Deferred();
  ix.confirm.show({
      'title': self.oUp.oMessage.CTRL_CONFIRM_DELETE_HEADLINE,
      'message': self.oUp.oMessage.CTRL_CONFIRM_DELETE,
      'buttons': {
          'Yes': {
              'css': 'margin:0 5px 0 5px;',
              'action': function () {
                  retDeferred.resolve();
              }
          },
          'No': {
              'css'   : 'margin:0 5px 0 5px;',
              'action': function(){
                  retDeferred.reject();
              }
          }           
      },
      'escAction': function () {
          retDeferred.reject();
      }
  });
  return retDeferred;
};

Type Definitions

Button

Type:
  • Object
Properties:
Name Type Argument Description
name String <optional>

Button text.

class String <optional>

Button style class.

css String <optional>

Additional custom styles.

id String <optional>

Unique button id.

action function <optional>

A function to be called if button was clicked.

ConfirmSettings

Type:
  • Object
Properties:
Name Type Argument Description
title String

Dialog title.

message String

Dialog description text.

buttons Array.<String, ix.confirm~Button>

List with confirm dialog buttons.

escAction function <optional>

A function to be called if user abort confirm confirm dialog via [ESC]-key.