I am learning Using and Extending Widgets referencing to http://dev.day.com/docs/en/cq/current/developing/widgets.html.
We can define js functions in listeners. Then my question is: where is function parameter defined? Like loadcontent="function(field,rec,path){Ejst.x2.showInfo(field,rec,path);}" , this function will be triggered when conent load, but what are values of "field", "rec", "path"? I cannot find where "field", "rec", "path" are defined. Are they just arbitrary names which i can change as i wish? (I believe this is not the case).
So would someone help?