Back to Devexpress

PointerUpEvent Class

aspnetcore-js-devexpress-dot-richedit-1f800398.md

latest2.9 KB
Original Source

PointerUpEvent Class

An event that occurs when a pointer stops being active.

Declaration

ts
export class PointerUpEvent extends RichEditEvent<PointerEventArgs>

Remarks

For a mouse pointer, the PointerUp event occurs when a user releases a mouse button or wheel while the mouse pointer is over the Rich Text Editor. For touch and pen pointers, this event occurs when a pointer stops physical contact with a digitizer.

You can define the PointerUp event handler either at the server side, at the client side, or at runtime.

Use the OnPointerUp(String) method to specify the event handler.

cshtml
@(Html.DevExpress().RichEdit("richEdit")
 .OnPointerUp("function(s,e){ /* your custom actions */ }")
 // ...

Use the pointerUp property to specify the event handler.

javascript
const options = DevExpress.RichEdit.createOptions();
options.events.pointerUp = function(s,e) { /* your custom actions */ };

The pointerUp property provides access to the addHandler(handler), removeHandler(handler), and clearHandlers methods that allow you to dynamically add and remove event handlers.

javascript
richEdit.events.pointerUp.addHandler(function(s, e) { /* your custom actions */ });

The event handler receives an argument of the PointerEventArgs type. The argument’s properties provide information specific to this event.

Inherited Members

addHandler(handler)

clearHandlers

isEmpty

removeHandler(handler)

Inheritance

Event<TSource, TEventArgs> RichEditEvent<TEventArgs> PointerUpEvent

See Also

Client-Side Events