WidgetEventHandler
Namespace: Wisej.Web.Ext.Webix
Assembly: Wisej.Web.Ext.Webix (4.1.0.0)
Represents a JavaScript handler attached to an event fired by the third party widget.
- C#
- VB.NET
public class WidgetEventHandler
Public Class WidgetEventHandler
The handler receives the first argument of the event in the variable e; all the arguments are available in arguments. The function is invoked with the context ("this") provided by the third party widget, not with the wisej.web.Widget instance.
Constructors
WidgetEventHandler()
Initializes a new instance of WidgetEventHandler.
Properties
Name
String: Returns or sets the name of the event handled by the WidgetEventHandler, without the "on" prefix: i.e. itemClick for the Webix event onItemClick. (Default: "")
Source
String: Returns or sets the JavaScript source code of the WidgetEventHandler: the body of a function that receives the event argument e.
Example:
The following example defines a handler that logs the row of the clicked item.
var handler = new wxBase.WidgetEventHandler
{
Name = "itemClick",
Source = "console.log('Clicked row ' + e.row);"
};