Functions
(static) trigger(pSelector, pEvent, pDataopt)
Function used to trigger custom events, return value defines if the event should be cancelled.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
pSelector |
apex.jQuery | jQuery object for which the event will be triggered. | |
pEvent |
String | The name of the event | |
pData |
String | Array |
<optional> |
Optional additional parameters to pass along to the event handler return {boolean} |
Example
lCancelEvent = apex.event.trigger('#myLink', 'click');
lCancelEvent = apex.event.trigger('#myLink', 'click', 'apples');
lCancelEvent = apex.event.trigger('#myLink', 'click', ['apples','pears']);