Interface IJsEvent
Provides functionality to subscribe to JavaScript events of any HTML element by its ID.
public interface IJsEvent : IAsyncDisposable
- Inherited Members
- Extension Methods
Methods
Connect(string, JsEventOptions)
Connects to the ancestor element of the element(s) that should be observed.
Task Connect(string elementId, JsEventOptions options)
Parameters
elementId
stringThe ID of the ancestor HTML element.
options
JsEventOptionsThe options defining the descendants to be observed and the keystrokes to be monitored.
Returns
Disconnect()
Disconnects from the previously connected ancestor and its descendants.
Task Disconnect()
Returns
Events
CaretPositionChanged
Occurs when the caret position changes in an input element, either on click or keyup.
event Action<int> CaretPositionChanged
Event Type
Paste
Occurs when a paste action is performed.
event Action<string> Paste
Event Type
Select
Occurs when a text selection action is performed.
event Action<int, int> Select