jQuery/JS Common - utils - events

This namespace provides methods for controlling events without using jQuery.

Methods

This section describes the methods that the DevExpress.events namespace exposes.

Name Description
off(element)

Detaches all handlers from the specified elements.

off(element, eventName)

Detaches all handlers of the specified event from the specified elements.

off(element, eventName, handler)

Detaches an event handler from the specified elements.

off(element, eventName, selector)

Detaches all event handlers of the specified type attached using the on(element, eventName, selector, data, handler) or on(element, eventName, selector, handler) method.

off(element, eventName, selector, handler)

Detaches the specified event handler attached using the on(element, eventName, selector, data, handler) or on(element, eventName, selector, handler) method.

on(element, eventName, data, handler)

Attaches an event handler to the specified elements. Allows you to pass custom data to the handler.

on(element, eventName, handler)

Attaches an event handler to the specified elements.

on(element, eventName, selector, data, handler)

Attaches an event handler to the specified elements' descendants. Allows you to pass custom data to the handler.

on(element, eventName, selector, handler)

Attaches an event handler to the specified elements' descendants.

one(element, eventName, data, handler)

Attaches an event handler that is executed only once to the specified elements. Allows you to pass custom data to the handler.

one(element, eventName, handler)

Attaches an event handler that is executed only once to the specified elements.

one(element, eventName, selector, data, handler)

Attaches an event handler that is executed only once to the specified elements' descendants. Allows you to pass custom data to the handler.

one(element, eventName, selector, handler)

Attaches an event handler that is executed only once to the specified elements' descendants.

trigger(element, event)

Triggers an event for the specified elements.

trigger(element, event, extraParameters)

Triggers an event for the specified elements. Allows you to pass custom parameters to event handlers.