MouseEvent
Values
asEvent
let asEvent: UiEventsTypes.mouseEvent => EventTypes.eventParameters
UiEventsTypes.mouseEventReturn type
EventTypes.eventasMouseEvent
let asMouseEvent: UiEventsTypes.mouseEvent => UiEventsTypes.mouseEventParameters
UiEventsTypes.mouseEventReturn type
UiEventsTypes.mouseEventasUIEvent
let asUIEvent: UiEventsTypes.mouseEvent => UiEventsTypes.uiEventParameters
UiEventsTypes.mouseEventReturn type
UiEventsTypes.uiEventcomposedPath
Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is "closed" that are not reachable from event's currentTarget. Read more on MDN
let composedPath: UiEventsTypes.mouseEvent => array<EventTypes.eventTarget>Parameters
UiEventsTypes.mouseEventReturn type
array< EventTypes.eventTarget >getModifierState
let getModifierState: (UiEventsTypes.mouseEvent, string) => boolParameters
UiEventsTypes.mouseEvent stringReturn type
boolmake
let make: ( ~type_: string, ~eventInitDict: UiEventsTypes.mouseEventInit=?,) => UiEventsTypes.mouseEventParameters
string option< UiEventsTypes.mouseEventInit >Return type
UiEventsTypes.mouseEventpreventDefault
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled. Read more on MDN
let preventDefault: UiEventsTypes.mouseEvent => unitParameters
UiEventsTypes.mouseEventReturn type
unitstopImmediatePropagation
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects. Read more on MDN
let stopImmediatePropagation: UiEventsTypes.mouseEvent => unitParameters
UiEventsTypes.mouseEventReturn type
unitstopPropagation
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object. Read more on MDN
let stopPropagation: UiEventsTypes.mouseEvent => unit