core/local/inplace_editable/events

Inplace editable module events

Source:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

(static, constant) eventTypes

Source:
Properties:
Name Type Description
elementUpdated String

See event:core/inplace_editable:updated

elementUpdateFailed String

See event:core/inplace_editable:updateFailed

Module events

Methods

(static) notifyElementUpdated(element, ajaxreturn, oldvalue) → {CustomEvent}

Source:

Notify element of successful update

Parameters:
Name Type Description
element HTMLElement

The element that was updated

ajaxreturn Object

The data returned from the update AJAX request

oldvalue String

The previous value of the element

Fires:
Returns:
Type
CustomEvent

(static) notifyElementUpdateFailed(element, exception, newvalue) → {CustomEvent}

Source:

Notify element of failed update

Parameters:
Name Type Description
element HTMLElement

The element that failed to update

exception Object

The raised exception

newvalue String

The intended value of the element

Fires:
Returns:
Type
CustomEvent

Events

core/inplace_editable:updated

Source:
Properties:
Name Type Description
target HTMLElement

The element that was updated

detail Object
Properties
Name Type Description
ajaxreturn Object

The data returned from the update AJAX request

oldvalue String

The previous value of the element

Event triggered when an element has been updated

Type:
  • CustomEvent

core/inplace_editable:updateFailed

Source:
Properties:
Name Type Description
target HTMLElement

The element that failed to update

detail Object
Properties
Name Type Description
exception Object

The raised exception

newvalue String

The intended value of the element

Event triggered when an element update has failed

Type:
  • CustomEvent