preOpenCancelled

Since: Editor 1.7.3

Form open action was cancelled by the preOpen event.
Please note - this property requires the Editor extension for DataTables.

Description

It is possible for an open action triggered by edit(), inline(), etc to be cancelled by the preOpen event. When you are subscribing an open you need to know if preOpen cancelled the opening of the form so you can also remove your open event. This event provides that ability, letting you know when the open was cancelled by preOpen.

Type

function( e, method, mdoe )

Parameters:

Example

Using open and preOpenCancelled events:

editor
	.one('open.myNamespace', function () {
		// Remove cancel open
		editor.off('preOpenCancelled.myNamespace');

		// Do something...
	})
	.one('preOpenCancelled.myNamespace', function () {
		editor.off('open.myNamespace');
	})
	.inline(this);