Class: EventHandlerList

bo.shared. EventHandlerList

Provides methods to manage the event handlers of a business object instance.

new EventHandlerList()

Creates a new event handler list object.

Methods

add(modelName, event, handler)

Adds a new event handler to to list.

Parameters:
Name Type Description
modelName string

The name of the business object model.

event bo.shared.DataPortalEvent

The event to listen.

handler external.eventHandler

A function to be invoked when the event is emitted.

Throws:

<protected> setup(target)

Adds the event handlers with the model name of the target object to the target object for all events. This method is called by models internally to set up the event handlers.

Parameters:
Name Type Description
target bo.ModalBase | bo.CollectionBase

A business object instance.

Throws:
Argument error: The model name must be a non-empty string.
If you find bugs or have feature requests, please let us know.

JavaScript business objects ♦ Copyright © 2014-2016 Logikum, Ltd.
Documentation generated by JSDoc 3.2.2 on 2015. December 31. using the DocStrap template.