AjaxHTTPResponse::triggerEvent
Queues up an event to be triggered on the client when the response is received.
Events are not gauranteed to be triggered in order. Events are triggered AFTER regions are replaced.
Signature
public function triggerEvent(string
$eventName,
[integer
$eventData = 1] )
Parameters
$eventName
— string$eventData
— integer- - must be json encodable
Returns
- $this