.trigger()

Previous Next

Triggers an event (in the same way as in the jQuery implementation).

Returns the 'this' object.

Syntax

.trigger( eventType, data )

The required eventType is a string that identifies the event to be triggered. The possible values for the 'eventType' parameter are described in the USoft Events section.

The optional data is an array of additional parameters to pass along to the event handler.

 

Example

$.udb('EMP').on('rowselect', function(event, r) {

 alert('Row: ' + r.index());

});
$.udb('EMP').trigger('rowselect');