bind(String eventName, Function handler)
Release 1.3 - ...
Binds to an client event triggered by a Smartlet.
Example:
Javascript | Copy Code |
---|---|
$j.scf.smartlet.bind('sml_treeview_PathChange', function(e){ var s = e.args.path; if(s){ alert(s); } }); |
Handler Arguments:
The handler function receives an event (jQuery event object, with an args property that holds the data that was added when the event was triggered).