aspnetcore-js-devexpress-dot-richedit-4aeb3b9a.md
An event that occurs when a pointer becomes active.
export class PointerDownEvent extends RichEditEvent<PointerEventArgs>
For a mouse pointer, the PointerDown event occurs when a user presses 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 contacts a digitizer.
You can define the PointerDown event handler either at the server side, at the client side, or at runtime.
Use the OnPointerDown(String) method to specify the event handler.
@(Html.DevExpress().RichEdit("richEdit")
.OnPointerDown("function(s,e){ /* your custom actions */ }")
// ...
Use the pointerDown property to specify the event handler.
const options = DevExpress.RichEdit.createOptions();
options.events.pointerDown = function(s,e) { /* your custom actions */ };
The pointerDown property provides access to the addHandler(handler), removeHandler(handler), and clearHandlers methods that allow you to dynamically add and remove event handlers.
richEdit.events.pointerDown.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.
Event<TSource, TEventArgs> RichEditEvent<TEventArgs> PointerDownEvent
See Also