Helper
This API is used to obtain helper objects from the plug-in wrapper. Currently only the EventHelper object is present. Any control level custom binding must happen using this helper object.
The following example binds two events on to the control in the customized wrapper, and runs custom handlers defined in the wrapper:
CustomPW.prototype.BindEvents = function (control) {
var ele = this.GetEl(),
evHelper = this.Helper("EventHelper");
evHelper
.Manage(ele, "click", { ctx: this }, OnClick)
.Manage(ele.next("span"), "hover", { ctx: this }, OpenAlertBox);
};
function OnClick() {
// Custom Definition for element click here
}
function OpenAlertBox() {
// Custom Definition for element next span hover here
}
For a detailed example about using APIs in a customized wrapper, see Configuring the Manifest for the Color Box Example.