APIs

Show:

Edit forms controllers mixin which handles save/delete operations indication.

Methods

actions.onErrorMessageHide

()

Handler for error ui-message component 'onHide' action.

actions.onErrorMessageShow

()

Handler for error ui-message component 'onShow' action.

actions.onSuccessMessageHide

()

Handler for success ui-message component 'onHide' action.

actions.onSuccessMessageShow

()

Handler for success ui-message component 'onShow' action.

onDeleteActionAlways.

(
  • data
)

This method will be invoked always when delete operation completed, regardless of delete promise's state (was it fulfilled or rejected).

Parameters:

  • data Object

    Data about completed delete operation.

onDeleteActionFulfilled.

()

This method will be invoked when delete operation successfully completed.

onDeleteActionRejected.

(
  • errorData
)

This method will be invoked when delete operation completed, but failed.

Parameters:

  • errorData Object

    Data about delete operation fail.

onDeleteActionStarted.

()

This method will be invoked before delete operation will be called.

onDeleteActionStarted.

()

This method will be invoked before close method will be called.

onSaveActionAlways.

(
  • data
)

This method will be invoked always when save operation completed, regardless of save promise's state (was it fulfilled or rejected).

Parameters:

  • data Object

    Data about completed save operation.

onSaveActionFulfilled.

()

This method will be invoked when save operation successfully completed.

onSaveActionRejected.

(
  • errorData
)

This method will be invoked when save operation completed, but failed.

Parameters:

  • errorData Object

    Data about save operation fail.

onSaveActionStarted.

()

This method will be invoked before save operation will be called.

Properties

formErrorMessage

String

Success message related to current locale and operation type.

formErrorMessageCaption.

String

Error message caption related to current locale and operation type.

formSuccessMessage.

String

Success message related to current locale and operation type.

formSuccessMessageCaption.

String

Success message caption related to current locale and operation type.

latestOperationType.

String

Latest operation type ('save' or 'delete').

showFormErrorMessage.

Boolean

Flag: indicates whether asynchronous operation failed or not.

Default: false

showFormSuccessMessage.

Boolean

Flag: indicates whether asynchronous operation succeed or not.

Default: false