This namespace is used to store all event related functions of Oracle APEX.
Function used to trigger events, return value defines if the event should be cancelled.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
pSelector |
jQuery | Selector for the element upon which the event will be triggered | |
pEvent |
string | The name of the event | |
pData |
string | Array | Object |
<optional> |
Optional additional parameters to pass along to the event handler |
Returns:
true if the event is cancelled.
- Type
- boolean
Example
Example shows triggering an event called 'click', on an element using the jQuery selector '#myLink' (matches an element with id='myLink'), passing an array of data.
lCancelEvent = apex.event.trigger('#myLink', 'click', ['apples','pears']);