Event handlers

Event handlers allow page authors to define custom behavior to be performed in response to client-side events, e.g. property change events, or component change events. A handler can have a number of parameters that will be passed to the handler when it is invoked. Each parameter has a name that can be used within the script handler to refer to it, and an optional value specified by a value attribute. If the value is not provided, then the parameter represents a value passed to the event handler when it is fired.

Event handlers allow page authors to define custom behavior to be performed in response to client-side events, e.g. property change events, or component change events. A handler can have a number of parameters that will be passed to the handler when it is invoked. Each parameter has a name that can be used within the script handler to refer to it, and an optional value specified by a value attribute. If the value is not provided, then the parameter represents a value passed to the event handler when it is fired.

An event handler can:

Refer to cf2:on for further information.

Value attributes

Value attributes represent different value types, e.g. component, number, etc. Each value type has an attribute value and a client-side value. The attribute value is the textual value specified in the markup, and the client-side value is the value used during execution of the handler. Refer to Value attributes and Fixed value attributes for the complete list of value attributes.

XDIME elements

The following table lists XDIME elements that handle events.

Name Purpose
cf2:bind

Binds two properties together.

cf2:on

Registers an event handler on a component.

cf2:param

Defines an optional parameter value passed into the handler's JavaScript method.

Related topics